api-design
REST API design best practices covering versioning, error handling, pagination, and OpenAPI documentation. Use when designing or…
Prompt engineering patterns for writing agent prompts and skill files — constraint budgets, register shifting, HARD GATE patterns, anti-personas. Use when writing or reviewing agents/*.md or skills/*/SKILL.md. TRIGGER when: agent prompt, skill file, prompt engineering,
Claude Code
$ npx -y skills add akaszubski/autonomous-dev --skill prompt-engineering --agent claude-code
Codex
$ npx skills add akaszubski/autonomous-dev --skill prompt-engineering -a codex -y
Cursor
$ npx skills add akaszubski/autonomous-dev --skill prompt-engineering -a cursor -y
Gemini CLI
$ npx skills add akaszubski/autonomous-dev --skill prompt-engineering -a gemini-cli -y
GitHub Copilot
$ npx skills add akaszubski/autonomous-dev --skill prompt-engineering -a github-copilot -y
OpenCode
$ npx skills add akaszubski/autonomous-dev --skill prompt-engineering -a opencode -y
Windsurf
$ npx skills add akaszubski/autonomous-dev --skill prompt-engineering -a windsurf -y
name: prompt-engineering description: "Prompt engineering patterns for writing agent prompts and skill files — constraint budgets, register shifting, HARD GATE patterns, anti-personas. Use when writing or reviewing agents/*.md or skills/*/SKILL.md. TRIGGER when: agent prompt, skill file, prompt engineering, model-tier compensation, HARD GATE, prompt quality. DO NOT TRIGGER when: user-facing docs, README, CHANGELOG, config files." allowed-tools: [Read, Grep, Glob]
Compact, actionable patterns for writing agent prompts and skill files. See [docs/PROMPT-ENGINEERING.md](../../docs/PROMPT-ENGINEERING.md) for full rationale and academic citations.
---
| Range | Compliance | |-------|-----------| | 1–6 | Reliable | | 7–15 | Unpredictable | | >15 | Degraded |
**Rule**: Max 6 hard constraints per section. Hard gates at the END of sections (Claude recency effect).
---
Before finalizing any hard gate or enforcement directive, verify the verbs:
**FORBIDDEN**: Tier 3 verbs in REQUIRED or FORBIDDEN lists.
---
**FORBIDDEN for analytical agents** (reviewers, auditors, analysts, planners):
**Source**: PRISM (arxiv:2603.18507) — expert personas reduce knowledge-retrieval accuracy for analytical tasks.
**Correct pattern**: Role description + behavioral directive.
# BAD You are a senior security engineer. Review this code. # GOOD Perform a security audit. Enumerate all CWE categories present.
---
### HARD GATE: [Topic] **[One-sentence scope statement]** **REQUIRED** (all must be met): - Specific action A - Specific action B **FORBIDDEN** — You MUST NOT do any of the following: - ❌ You MUST NOT [prohibited action] - ❌ You MUST NOT [prohibited action] **Why**: [One sentence — increases compliance]
---
<model-tier-compensation tier="[haiku|sonnet|opus]"> ## Model-Tier Behavioral Constraints ([Tier Name]) - Do NOT [specific tendency to suppress]. - ALWAYS [specific required behavior]. </model-tier-compensation>
Rules:
---
Use for planning, security scans, and architecture tasks. 2–3 passes optimal (NeurIPS 2023).
## Pass 1: GENERATE [Initial output] ## Pass 2: FEEDBACK Critically analyse Pass 1. Enumerate: - Gaps (missing) - Errors (wrong) - Ambiguities (unclear) ## Pass 3: REFINE Apply Pass 2 feedback. Produce final output.
**Anti-pattern**: "Review your answer and improve it" — Tier 3, will be ignored. Use Tier 1: "Critically analyse for gaps and enumerate missing cases."
---
Every block (hook or agent) MUST include a required next action:
# STICK only (bad) BLOCKED: Cannot edit agents/*.md outside the pipeline. # STICK + CARROT (good) BLOCKED: Cannot edit agents/*.md outside the pipeline. REQUIRED NEXT ACTION: Use /implement to run the pipeline with your changes.
Hook JSON format:
{
"decision": "block",
"reason": "What failed and why.",
"requiredNextAction": "Specific step to take next."
}---
| Anti-Pattern | Why Wrong | Fix | |-------------|-----------|-----| | `>15 constraints` per section | MOSAIC: degraded compliance | Split into subsections ≤6 each | | Persona prefix for analytical tasks | PRISM: reduces accuracy | Role description + directive | | Hedge words in hard gates | Weakens enforcement | Delete or replace with MUST | | Prose-buried constraints | Low compliance | Convert to numbered list | | Meta-commentary about model weaknesses | May reinforce behavior | Reframe as behavioral directive | | Block without carrot | Model loops | Add REQUIRED NEXT ACTION |
---
See [docs/PROMPT-ENGINEERING.md](../../docs/PROMPT-ENGINEERING.md) for:
A harness that wraps Claude Code with enforcement, specialist agents, and alignment gates to deliver consistent, production-grade software engineering outcomes.
REST API design best practices covering versioning, error handling, pagination, and OpenAPI documentation. Use when designing or…
Subprocess safety, GitHub CLI integration, retry logic, authentication, rate limiting, and timeout handling. Use when integrating…
File-by-file architecture planning with ADR format, dependency ordering, and testability gates. Use when designing system…
10-point code review checklist covering correctness, tests, error handling, type hints, naming, security, and performance. Use…
One topic, one home. Routes content to its canonical store (CLAUDE.md, PROJECT.md, MEMORY.md, docs/, memory/) and audits for…
Systematic debugging methodology — reproduce, isolate, bisect, fix, verify. Use when diagnosing failures, tracing errors, or…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.