# genprompt

> Generates grounded, context-locked prompts for Claude Code with file citations and repo-specific quality gates.

genprompt is a free AI agent skill on Agensi by Shoaib Jadallah, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Shoaib Jadallah](https://www.agensi.io/creators/shoaib-jadallah)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/genprompt
- Tags: prompt-engineering, code-review, automation, claude-code, planning

## About this skill

Prompting a coding agent well takes real work: finding the right files, the repo's actual lint and test commands, its house rules, and what the last session actually landed. genprompt does that groundwork. It turns one Claude Code chat into a prompt generator: it reads your repo read-only and writes one ready-to-paste prompt for a second "worker" chat. When the worker finishes, paste its stop-report back in and genprompt writes the next prompt.

### What it does
- **Target lock.** Before writing anything it shows the repo, branch, scope, stack, the repo's CLAUDE.md rules and the gate commands it found, and waits for your "go".
- **Grounding.** Every load-bearing instruction cites file:line. Anything it could not check is marked [UNVERIFIED]; it never invents a path, script, SHA or count.
- **Literal gates.** Lint, typecheck, test and build commands come from the repo's real scripts, labelled by source. If there are no tests, the prompt says so.
- **23 archetypes.** slice, fix, audit, review, plan, design, test, perf, security, upgrade, cleanup, docs, commit, release, next, resume and more, each with its own template and length budget.
- **Self-check.** It runs a 22-row checklist on its own prompt and prints the table under it.
- **Archive.** Every prompt is saved to ~/.genprompt/ on your machine, so the next prompt can follow on from the last one.

### How it works
1. **Ask for a prompt** in plain words or by archetype: "a security prompt for the login code", "slice item 3 of docs/roadmap.md".
2. **Confirm the TARGET LOCK** (repo, branch, scope, contract, gates, archetype), or correct any line.
3. **Copy the prompt.** You get one fenced block with a stop-list, a definition of done and a report spec.
4. **Paste the worker's stop-report back** and genprompt checks it against git before writing the next prompt.

### Frameworks & tools
Built for Claude Code. Works with any language or framework; the stack matrix covers the common ecosystems. Uses git read-only (it also works without git, with less grounding). Python 3 is needed only for the optional doctor integrity check.

### Why this beats prompting it yourself
A worker agent follows what the prompt tells it. If the prompt guesses a test command, misremembers a file or skips the repo's branching rule, the worker builds on that mistake. genprompt checks each of those facts in the repo before it writes the prompt, and shows you what it could not check.

### Use cases
- **Slicing a roadmap:** one vertical slice per prompt, with checkpoints and gates.
- **Fixes and hotfixes:** a per-defect repro, acceptance test and false-positive list.
- **Audits and security reviews:** read-only findings with evidence at file:line, then fix only what you approve.
- **Commits and releases:** a staging manifest, the branch and push policy from the repo's own rules, and approval for every outward-facing step.
- **Long-running work:** paste each stop-report back to get the next prompt.

### Known limitations
genprompt writes prompts. It does not change your code and never runs builds, tests or installs; the worker chat you paste the prompt into does that. It writes only to ~/.genprompt/. Generated prompts are written for Claude Code; other agents are untested.

Free and MIT-licensed. For all 29 /genprompt: slash commands, install the plugin from github.com/Sh0aib-Ja0allah/genprompt

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the genprompt skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does genprompt prevent AI hallucinations when working with large codebases?

It reads the repo before writing anything, and every load-bearing instruction in the prompt cites file: line. Anything it could not verify is marked [UNVERIFIED] instead of guessed, and gate commands come from the repo's real scripts. It also shows you a TARGET LOCK to confirm before it writes.

### Which AI agents and programming environments are compatible with this skill?

It is built and tested for Claude Code and works with any language or framework. It needs git for full grounding. Python 3 is optional and is only used by the doctor integrity check. Other SKILL.md agents may load it, but the prompts it writes target Claude Code.

### How does the skill handle multi-step tasks that require more than one worker chat?

The 'stop-report' feature allows you to paste the output from a finished worker chat back into genprompt, which then analyzes the progress to generate the logical next set of instructions for a seamless workflow.

### Will this skill make any unauthorized changes or writes to my repository?

No. It only reads your repo and runs read-only git commands. It only writes to ~/.genprompt/ on your machine: an archive of the prompts it wrote and your personal rules. The prompts themselves are run by you, in a separate chat.

### What exactly is included in the package?

The full rulebook: the generator protocol, 23 archetype templates, the stack matrix, the guide, the 29 command files used by the plugin, and doctor.py, a standard-library script that checks the rulebook and your prompt archive for consistency. It is free and MIT-licensed.

### Should I use the skill or the plugin?

Both run the same rulebook. The plugin adds 29 /genprompt:<command> slash commands with narrow, pre-approved permissions. To install it in Claude Code: /plugin marketplace add Sh0aib-Ja0allah/genprompt, then /plugin install genprompt@genprompt.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
