- Home
- Skills
- Prompt & Skill Engineering
- genprompt
More screenshots
Works with the AI Agents you already use
genprompt
Generates grounded, context-locked prompts for Claude Code with file citations and repo-specific quality gates.
Free
genprompt
Example session with this skill installed
Write a security prompt for the login and password-reset code in ~/code/shopfront.
- Read your context and instructions
- Compiled the genprompt
TARGET LOCK: confirm or correct
Repo shopfront · /home/dev/code/shopfront
branch main (default main) · tree clean · via argument
Occupancy free
Scope single root
Stack Node 20 · Express 4.19 · TypeScript 5.4 · Prisma 5.14 · role backend API engineer
Contract CLAUDE.md · hard rules: "feature branches only, never push to main" (CLAUDE.md:12),
"no new dependencies without asking" (CLAUDE.md:19)
Ancestors none found · user-level: ~/.claude/CLAUDE.md
Truth docs/auth.md, then CLAUDE.md
Gates npm run lint (script) · npm run typecheck (script) · npm test (script, vitest)
New docs docs/security/YYYY-MM-DD-<topic>.md → docs/security/2026-10-13-auth-review.md
Archetype Q: security · autonomy: Phase 1 read-only, Phase 2 behind an approval gate
Last prompt none
Reply "go" to accept, or correct any line.
You: go
| Date | 2026-10-13 |
|---|---|
| Archetype | Q: security review and hardening (§5.Q) |
| Target repo | /home/dev/code/shopfront · branch main · scope single root |
| Follows | none |
Grounded by: a read-only pass over src/routes/auth.ts, src/services/reset.ts, src/app.ts and
src/middleware/. Findings that reshaped the prompt:
- The rate limiter is mounted on
/apionly (src/app.ts:31). The/authroutes are outside it. - The reset token is compared with
===(src/services/reset.ts:47), not a constant-time compare. - Whether used reset tokens are deleted is [UNVERIFIED]: no delete call found in reset.ts.
Repo: /home/dev/code/shopfront (branch main)
Read CLAUDE.md FIRST. Where this prompt and CLAUDE.md disagree, follow CLAUDE.md and tell me.
Task: security review of login and password reset, then fix what is safe to fix now.
HARD LINES: local only; never touch production or any remote system; never print secret values;
never weaken a control to pass a test.
ATTACK SURFACE, as I read it (verify, then extend):
- POST /auth/login (src/routes/auth.ts:14): anonymous; no rate limit (src/app.ts:31 mounts it on /api)
- POST /auth/reset/request (src/routes/auth.ts:41): anonymous; sends mail via src/services/mail.ts
- POST /auth/reset/confirm (src/routes/auth.ts:58): anonymous; token check at src/services/reset.ts:47
CURRENT-STATE SKEPTICISM: docs/auth.md:22 says "all auth routes are rate-limited". src/app.ts:31
says otherwise. Believe the code, and record the doc drift.
PHASE 1 (READ-ONLY): threat model + findings.
- Check: enumeration via login and reset responses, brute force, token entropy, expiry and reuse,
timing-safe compares, session fixation, cookie flags, secrets in the repo, npm audit (read-only).
- Write docs/security/2026-10-13-auth-review.md with a findings table:
| ID | Severity | file:line | Evidence (quoted) | Repro | Recommendation | FIX-NOW or RECORD |
No speculative findings. Checked and retired items go in a FALSE POSITIVES table.
STOP after Phase 1 and show me the FIX-NOW list. Do not start Phase 2 until I say so.
PHASE 2: fix the FIX-NOW items only, on a feature branch (CLAUDE.md:12).
Each fix lands with a test proving the attack is refused AND the legitimate case still works.
RECORD, DO NOT ACT: lockout policy and reset-token lifetime are product decisions. Record them.
WHAT YOU CANNOT DO: production config, mail-provider settings, secret rotation. List what you need.
VERIFICATION: run before every commit. Never commit red.
npm run lint
npm run typecheck
npm test
Record the baseline numbers first. Expected delta: tests up by at least one per fix.
DON'T: add dependencies (CLAUDE.md:19), push to main, touch files outside src/ and the doc.
DEFINITION OF DONE: doc written; approved fixes landed green with tests; nothing else changed.
REPORT: findings count by severity, gate numbers before and after, commits with SHAs,
`git status` at the end, and "no files outside scope touched" confirmed.
Start with Phase 1 now.
| # | Item | Verdict | Reason |
|---|---|---|---|
| 1 | Target resolved | PASS | via argument |
| 2 | Repo anchor | PASS | absolute path + branch |
| 3 | Task statement | PASS | line 3 |
| 4 | Contract + ancestors | PASS | CLAUDE.md first; ancestors scanned, none found |
| 5 | Source of truth | PASS | docs/auth.md flagged stale |
| 6 | Skepticism | PASS | docs/auth.md:22 vs src/app.ts:31 |
| 7 | Grounding | PASS | file:line throughout; one [UNVERIFIED] |
| 8 | Literal gates | PASS | three scripts from package.json |
| 9 | Baseline + delta | PASS | worker records it; up per fix |
| 10 | Negative scope | PASS | src/ and one doc only |
| 11 | Autonomy | PASS | Phase 2 behind an approval gate |
| 12 | Git posture | PASS | feature branch, never push to main |
| 13 | Stop-list | PASS | prod config, mail, secrets |
| 14 | Report spec | PASS | negative confirmation + git status |
| 15 | Terminal imperative | PASS | "Start with Phase 1 now." |
| 16 | One block, no placeholders | PASS | checked |
| 17 | Doc naming | PASS | docs/security/ date convention |
| 18 | Follows | N/A | first prompt for this repo |
| 19 | Numbers labelled | N/A | no worker numbers yet |
| 20 | Hygiene | PASS | no leaked specifics; tree free |
| 21 | Length | PASS | within the Program (350) budget |
| 22 | Archived | PASS | see path below |
Saved: ~/.genprompt/generated-prompts/shopfront/2026-10-13-security-auth-login-reset.md
Next: paste the prompt into a second Claude Code chat. When the worker stops after Phase 1,
paste its report back here and genprompt writes the Phase 2 rulings.
Connects securely to your tools. The creator never sees your data.
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
- Ask for a prompt in plain words or by archetype: "a security prompt for the login code", "slice item 3 of docs/roadmap.md".
- Confirm the TARGET LOCK (repo, branch, scope, contract, gates, archetype), or correct any line.
- Copy the prompt. You get one fenced block with a stop-list, a definition of done and a report spec.
- 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
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 7 days ago
- Free to download with an account