@complexthings/superpowers-agent 9.2.1 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/claude-handoff/SKILL.md +18 -0
- package/.agents/skills/code-review/SKILL.md +89 -0
- package/.agents/skills/{improve-codebase-architecture → codebase-design}/DEEPENING.md +1 -1
- package/.agents/skills/{improve-codebase-architecture/INTERFACE-DESIGN.md → codebase-design/DESIGN-IT-TWICE.md} +3 -3
- package/.agents/skills/codebase-design/SKILL.md +114 -0
- package/.agents/skills/design-an-interface/SKILL.md +94 -0
- package/.agents/skills/{diagnose → diagnosing-bugs}/SKILL.md +29 -12
- package/.agents/skills/{grill-with-docs → domain-modeling}/CONTEXT-FORMAT.md +1 -4
- package/.agents/skills/domain-modeling/SKILL.md +74 -0
- package/.agents/skills/fable-mode/SKILL.md +95 -0
- package/.agents/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/.agents/skills/git-guardrails-claude-code/scripts/block-dangerous-git.sh +25 -0
- package/.agents/skills/grill-me/SKILL.md +7 -0
- package/.agents/skills/grill-with-docs/SKILL.md +3 -86
- package/.agents/skills/grilling/SKILL.md +14 -0
- package/.agents/skills/handoff/SKILL.md +2 -1
- package/.agents/skills/i-have-adhd/SKILL.md +120 -0
- package/.agents/skills/implement/SKILL.md +11 -0
- package/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +3 -3
- package/.agents/skills/improve-codebase-architecture/SKILL.md +13 -28
- package/.agents/skills/loop-me/SKILL.md +32 -0
- package/.agents/skills/prototype/SKILL.md +1 -1
- package/.agents/skills/qa/SKILL.md +130 -0
- package/.agents/skills/request-refactor-plan/SKILL.md +68 -0
- package/.agents/skills/research/SKILL.md +12 -0
- package/.agents/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/.agents/skills/scaffold-exercises/SKILL.md +106 -0
- package/.agents/skills/setup-matt-pocock-skills/SKILL.md +11 -9
- package/.agents/skills/setup-matt-pocock-skills/domain.md +2 -2
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +23 -0
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +23 -0
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +11 -0
- package/.agents/skills/skill-creator/LICENSE.txt +202 -0
- package/.agents/skills/skill-creator/SKILL.md +485 -0
- package/.agents/skills/skill-creator/agents/analyzer.md +274 -0
- package/.agents/skills/skill-creator/agents/comparator.md +202 -0
- package/.agents/skills/skill-creator/agents/grader.md +223 -0
- package/.agents/skills/skill-creator/assets/eval_review.html +146 -0
- package/.agents/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/.agents/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/.agents/skills/skill-creator/references/schemas.md +430 -0
- package/.agents/skills/skill-creator/scripts/__init__.py +0 -0
- package/.agents/skills/skill-creator/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/.agents/skills/skill-creator/scripts/__pycache__/run_eval.cpython-314.pyc +0 -0
- package/.agents/skills/skill-creator/scripts/__pycache__/utils.cpython-314.pyc +0 -0
- package/.agents/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/.agents/skills/skill-creator/scripts/generate_report.py +326 -0
- package/.agents/skills/skill-creator/scripts/improve_description.py +247 -0
- package/.agents/skills/skill-creator/scripts/package_skill.py +136 -0
- package/.agents/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/.agents/skills/skill-creator/scripts/run_eval.py +310 -0
- package/.agents/skills/skill-creator/scripts/run_loop.py +328 -0
- package/.agents/skills/skill-creator/scripts/utils.py +47 -0
- package/.agents/skills/tdd/SKILL.md +17 -90
- package/.agents/skills/tdd/tests.md +16 -0
- package/.agents/skills/teach/GLOSSARY-FORMAT.md +35 -0
- package/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
- package/.agents/skills/teach/MISSION-FORMAT.md +31 -0
- package/.agents/skills/teach/RESOURCES-FORMAT.md +32 -0
- package/.agents/skills/teach/SKILL.md +140 -0
- package/.agents/skills/{to-prd → to-spec}/SKILL.md +11 -12
- package/.agents/skills/to-tickets/SKILL.md +114 -0
- package/.agents/skills/triage/AGENT-BRIEF.md +40 -1
- package/.agents/skills/triage/OUT-OF-SCOPE.md +5 -1
- package/.agents/skills/triage/SKILL.md +20 -11
- package/.agents/skills/wayfinder/SKILL.md +127 -0
- package/.agents/skills/writing-great-skills/GLOSSARY.md +201 -0
- package/.agents/skills/writing-great-skills/SKILL.md +83 -0
- package/.agents/superpowers-agent +103 -222
- package/.agents/superpowers-bootstrap.md +3 -3
- package/.agents/templates/AGENTS.md.template +11 -34
- package/.agents/templates/SUPERPOWERS.md.template +4 -4
- package/.github/copilot-instructions.md +23 -99
- package/.github/hooks/rtk-rewrite.json +22 -0
- package/AGENTS.md +7 -6
- package/README.md +53 -174
- package/package.json +2 -2
- package/skills/collaboration/brainstorming/SKILL.md +39 -139
- package/skills/collaboration/brainstorming/skill.json +2 -2
- package/skills/collaboration/leveraging-cli-tools/SKILL.md +70 -71
- package/skills/collaboration/leveraging-cli-tools/references/copilot-instructions.md +30 -0
- package/skills/collaboration/leveraging-cli-tools/scripts/setup-ponytail.sh +185 -0
- package/skills/collaboration/leveraging-cli-tools/scripts/setup-rtk.sh +217 -0
- package/skills/collaboration/leveraging-cli-tools/skill.json +1 -1
- package/skills/meta/create-skill-json/SKILL.md +4 -4
- package/skills/meta/create-skill-json/skill.json +1 -1
- package/skills/meta/create-skill-json/test-scenarios.md +1 -1
- package/skills/setup-skills/SKILL.md +18 -11
- package/skills/setup-skills/skill.json +8 -0
- package/.agents/skills/caveman/SKILL.md +0 -49
- package/.agents/skills/improve-codebase-architecture/LANGUAGE.md +0 -53
- package/.agents/skills/karpathy-guidelines/SKILL.md +0 -75
- package/.agents/skills/review/SKILL.md +0 -78
- package/.agents/skills/tdd/deep-modules.md +0 -33
- package/.agents/skills/tdd/interface-design.md +0 -31
- package/.agents/skills/tdd/refactoring.md +0 -10
- package/.agents/skills/to-issues/SKILL.md +0 -83
- package/.agents/skills/zoom-out/SKILL.md +0 -7
- package/skills/architecture/ABOUT.md +0 -20
- package/skills/architecture/preserving-productive-tensions/SKILL.md +0 -146
- package/skills/architecture/preserving-productive-tensions/skill.json +0 -9
- package/skills/collaboration/brainstorming/spec-document-reviewer-prompt.md +0 -50
- package/skills/collaboration/brainstorming/visual-companion.md +0 -277
- package/skills/collaboration/dispatching-parallel-agents/SKILL.md +0 -174
- package/skills/collaboration/dispatching-parallel-agents/skill.json +0 -9
- package/skills/collaboration/executing-plans/SKILL.md +0 -130
- package/skills/collaboration/executing-plans/skill.json +0 -9
- package/skills/collaboration/finishing-a-development-branch/SKILL.md +0 -261
- package/skills/collaboration/finishing-a-development-branch/skill.json +0 -9
- package/skills/collaboration/leveraging-cli-tools/scripts/slim.py +0 -167
- package/skills/collaboration/receiving-code-review/SKILL.md +0 -233
- package/skills/collaboration/receiving-code-review/skill.json +0 -9
- package/skills/collaboration/requesting-code-review/SKILL.md +0 -110
- package/skills/collaboration/requesting-code-review/code-reviewer.md +0 -146
- package/skills/collaboration/requesting-code-review/skill.json +0 -12
- package/skills/collaboration/subagent-driven-development/SKILL.md +0 -255
- package/skills/collaboration/subagent-driven-development/code-quality-reviewer-prompt.md +0 -26
- package/skills/collaboration/subagent-driven-development/implementer-prompt.md +0 -113
- package/skills/collaboration/subagent-driven-development/skill.json +0 -15
- package/skills/collaboration/subagent-driven-development/spec-reviewer-prompt.md +0 -61
- package/skills/collaboration/using-git-worktrees/SKILL.md +0 -366
- package/skills/collaboration/using-git-worktrees/skill.json +0 -9
- package/skills/collaboration/writing-plans/SKILL.md +0 -121
- package/skills/collaboration/writing-plans/plan-document-reviewer-prompt.md +0 -52
- package/skills/collaboration/writing-plans/skill.json +0 -9
- package/skills/debugging/defense-in-depth/SKILL.md +0 -380
- package/skills/debugging/defense-in-depth/skill.json +0 -9
- package/skills/debugging/root-cause-tracing/SKILL.md +0 -361
- package/skills/debugging/root-cause-tracing/find-polluter.sh +0 -63
- package/skills/debugging/root-cause-tracing/skill.json +0 -12
- package/skills/debugging/systematic-debugging/SKILL.md +0 -299
- package/skills/debugging/systematic-debugging/condition-based-waiting-example.ts +0 -158
- package/skills/debugging/systematic-debugging/condition-based-waiting.md +0 -115
- package/skills/debugging/systematic-debugging/defense-in-depth.md +0 -122
- package/skills/debugging/systematic-debugging/find-polluter.sh +0 -63
- package/skills/debugging/systematic-debugging/root-cause-tracing.md +0 -169
- package/skills/debugging/systematic-debugging/skill.json +0 -9
- package/skills/debugging/systematic-debugging/test-academic.md +0 -14
- package/skills/debugging/systematic-debugging/test-pressure-1.md +0 -58
- package/skills/debugging/systematic-debugging/test-pressure-2.md +0 -68
- package/skills/debugging/systematic-debugging/test-pressure-3.md +0 -69
- package/skills/debugging/verification-before-completion/SKILL.md +0 -143
- package/skills/debugging/verification-before-completion/skill.json +0 -9
- package/skills/finding-skills/SKILL.md +0 -101
- package/skills/finding-skills/skill.json +0 -8
- package/skills/meta/create-agents-md/SKILL.md +0 -182
- package/skills/meta/create-agents-md/skill.json +0 -9
- package/skills/meta/creating-prompts/SKILL.md +0 -349
- package/skills/meta/creating-prompts/examples/do-example.md +0 -65
- package/skills/meta/creating-prompts/examples/plan-example.md +0 -75
- package/skills/meta/creating-prompts/examples/refine-example.md +0 -65
- package/skills/meta/creating-prompts/examples/research-example.md +0 -63
- package/skills/meta/creating-prompts/scripts/get-next-number.sh +0 -27
- package/skills/meta/creating-prompts/skill.json +0 -20
- package/skills/meta/creating-prompts/templates/do-template.md +0 -59
- package/skills/meta/creating-prompts/templates/plan-template.md +0 -58
- package/skills/meta/creating-prompts/templates/refine-template.md +0 -54
- package/skills/meta/creating-prompts/templates/research-template.md +0 -56
- package/skills/meta/using-superpowers/SKILL.md +0 -108
- package/skills/meta/using-superpowers/skill.json +0 -5
- package/skills/meta/writing-prompts/SKILL.md +0 -122
- package/skills/meta/writing-prompts/references/platforms.md +0 -114
- package/skills/meta/writing-prompts/skill.json +0 -9
- package/skills/problem-solving/ABOUT.md +0 -40
- package/skills/problem-solving/collision-zone-thinking/SKILL.md +0 -188
- package/skills/problem-solving/collision-zone-thinking/references/historical-examples.md +0 -393
- package/skills/problem-solving/collision-zone-thinking/skill.json +0 -9
- package/skills/problem-solving/inversion-exercise/SKILL.md +0 -174
- package/skills/problem-solving/inversion-exercise/skill.json +0 -9
- package/skills/problem-solving/meta-pattern-recognition/SKILL.md +0 -116
- package/skills/problem-solving/meta-pattern-recognition/skill.json +0 -9
- package/skills/problem-solving/scale-game/SKILL.md +0 -222
- package/skills/problem-solving/scale-game/skill.json +0 -9
- package/skills/problem-solving/simplification-cascades/SKILL.md +0 -113
- package/skills/problem-solving/simplification-cascades/skill.json +0 -9
- package/skills/problem-solving/when-stuck/SKILL.md +0 -69
- package/skills/problem-solving/when-stuck/skill.json +0 -9
- package/skills/research/ABOUT.md +0 -20
- package/skills/research/tracing-knowledge-lineages/SKILL.md +0 -241
- package/skills/research/tracing-knowledge-lineages/skill.json +0 -9
- package/skills/testing/condition-based-waiting/SKILL.md +0 -359
- package/skills/testing/condition-based-waiting/example.ts +0 -158
- package/skills/testing/condition-based-waiting/skill.json +0 -12
- package/skills/testing/test-driven-development/SKILL.md +0 -434
- package/skills/testing/test-driven-development/skill.json +0 -9
- package/skills/testing/testing-anti-patterns/SKILL.md +0 -298
- package/skills/testing/testing-anti-patterns/skill.json +0 -9
- package/skills/testing/verification-before-completion/SKILL.md +0 -246
- package/skills/testing/verification-before-completion/skill.json +0 -10
- package/skills/using-a-skill/SKILL.md +0 -101
- package/skills/using-a-skill/skill.json +0 -8
- /package/.agents/skills/{diagnose → diagnosing-bugs}/scripts/hitl-loop.template.sh +0 -0
- /package/.agents/skills/{grill-with-docs → domain-modeling}/ADR-FORMAT.md +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: finding-skills
|
|
3
|
-
description: Use when you need to discover what skills are available before starting any task, find a skill for a specific problem, search by keyword or topic, or understand which skill to use. Always check for skills at the start of any conversation or before beginning a task — if a skill exists for what you're doing, you must use it.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Finding Skills
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
Before starting any task, discover what skills are available so you don't reinvent solved problems. Skills encode proven workflows — using them prevents known mistakes and saves time.
|
|
11
|
-
|
|
12
|
-
## When to Use
|
|
13
|
-
|
|
14
|
-
- Starting a new task or conversation (always check first)
|
|
15
|
-
- Looking for guidance on a specific problem (debugging, testing, planning, etc.)
|
|
16
|
-
- Unsure whether a skill exists for something you're about to do
|
|
17
|
-
- Asked "is there a skill for X?" or "what skills are available?"
|
|
18
|
-
|
|
19
|
-
## How to Find Skills
|
|
20
|
-
|
|
21
|
-
### Native Skill Tool (Primary Method — All Platforms)
|
|
22
|
-
|
|
23
|
-
Most AI coding assistants expose a native skill or tool mechanism. Use it first:
|
|
24
|
-
|
|
25
|
-
- **If your platform has a native `skill` tool**: use it to list or load skills by name — this is the fastest path
|
|
26
|
-
- **If skills appear in your system context** (e.g., an `<available_skills>` block or similar): scan that list before starting any task
|
|
27
|
-
- **If your platform supports `@skill` mentions or tool invocations**: use those to activate a skill directly
|
|
28
|
-
|
|
29
|
-
When in doubt, check whatever mechanism your platform provides to discover available skills before doing anything else.
|
|
30
|
-
|
|
31
|
-
### CLI: superpowers-agent find-skills
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
superpowers-agent find-skills
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
This shows all skills from superpowers-managed locations with their names and descriptions.
|
|
38
|
-
|
|
39
|
-
**Filter by piping to grep:**
|
|
40
|
-
```bash
|
|
41
|
-
# Find testing-related skills
|
|
42
|
-
superpowers-agent find-skills | grep -i test
|
|
43
|
-
|
|
44
|
-
# Find debugging skills
|
|
45
|
-
superpowers-agent find-skills | grep -i debug
|
|
46
|
-
|
|
47
|
-
# Find skills about a topic
|
|
48
|
-
superpowers-agent find-skills | grep -i brainstorm
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**Get the path to a specific skill:**
|
|
52
|
-
```bash
|
|
53
|
-
superpowers-agent path <skill-name>
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**Load and execute a skill directly:**
|
|
57
|
-
```bash
|
|
58
|
-
superpowers-agent execute <skill-name>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Skill Locations and Priority
|
|
62
|
-
|
|
63
|
-
Skills are discovered from multiple locations. Higher priority overrides lower when names conflict:
|
|
64
|
-
|
|
65
|
-
| Priority | Location | Scope |
|
|
66
|
-
|----------|----------|-------|
|
|
67
|
-
| 1 (highest) | `.agents/skills/` in project | Project-specific |
|
|
68
|
-
| 1 (highest) | Platform project skill dir (e.g. `.claude/skills/`) | Project-specific |
|
|
69
|
-
| 2 | `~/.agents/skills/` | Personal, cross-project |
|
|
70
|
-
| 3 | Platform system skill directory | Platform system skills |
|
|
71
|
-
| 4 (lowest) | `~/.agents/superpowers/skills/` | Superpowers community skills |
|
|
72
|
-
|
|
73
|
-
Project skills always win. When a project skill and a system skill share the same name, the project version is used.
|
|
74
|
-
|
|
75
|
-
## After Finding a Skill
|
|
76
|
-
|
|
77
|
-
Once you identify a relevant skill:
|
|
78
|
-
|
|
79
|
-
1. Load it using your platform's native skill tool, or via `superpowers-agent execute <name>`
|
|
80
|
-
2. Announce: "Using Skill: [name] to [purpose]"
|
|
81
|
-
3. Follow the skill's instructions exactly
|
|
82
|
-
|
|
83
|
-
If a skill exists for your task, using it is not optional — skills encode solutions to known problems.
|
|
84
|
-
|
|
85
|
-
## Common Mistakes
|
|
86
|
-
|
|
87
|
-
**Don't:**
|
|
88
|
-
- Skip checking for skills because "this is simple" — simple tasks are exactly when you're most likely to miss that a skill exists
|
|
89
|
-
- Assume you remember what skills are available — the list changes, check fresh each time
|
|
90
|
-
- Search only by exact name — grep descriptions too, skills may use different terminology
|
|
91
|
-
|
|
92
|
-
**Do:**
|
|
93
|
-
- Check at the start of every task, before writing code or asking clarifying questions
|
|
94
|
-
- Search broadly (e.g., `grep -i plan` finds `writing-plans`, `executing-plans`, etc.)
|
|
95
|
-
- If in doubt whether a skill applies, load it and check — it costs little to verify
|
|
96
|
-
|
|
97
|
-
## Related Skills
|
|
98
|
-
|
|
99
|
-
- **using-a-skill** - How to load and apply a skill once found
|
|
100
|
-
- **using-superpowers** - Introduction to the full skills system
|
|
101
|
-
- **writing-skills** - Create new skills using TDD
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: create-agents-md
|
|
3
|
-
description: Analyzes a codebase and creates or improves an AGENTS.md file at the repo root — the open-standard instruction file that AI coding agents (Claude Code, Codex, Cursor, Copilot, Gemini CLI, Aider, and others) read for build/test commands, code style, and conventions. Use whenever the user asks to create, generate, write, update, or improve an AGENTS.md, onboard agents to a repo, document build/test/lint commands for AI tools, or consolidate scattered agent instruction files (CLAUDE.md, .cursorrules, .cursor/rules, .github/copilot-instructions.md) into one. Use even if the user only says "make an agents file" or "document this repo for AI agents".
|
|
4
|
-
metadata:
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Create AGENTS.md
|
|
9
|
-
|
|
10
|
-
## Overview
|
|
11
|
-
|
|
12
|
-
`AGENTS.md` is an open, cross-tool standard (https://agents.md/): a "README for agents" placed at the repo root that gives AI coding agents the build steps, test commands, and conventions they need to work in a repository. 20+ tools read it, including Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Gemini CLI, Aider, Jules, and Zed.
|
|
13
|
-
|
|
14
|
-
This skill produces that file by **reading the actual repository** and writing down what is true of it — never boilerplate, never invented conventions.
|
|
15
|
-
|
|
16
|
-
**Core principle: facts only.** Every command, style rule, and convention in the output must come from a file you actually read. If you can't verify it, don't write it. A short AGENTS.md that is 100% accurate beats a long one padded with plausible guesses — agents will run the commands you list, and a wrong command wastes their time.
|
|
17
|
-
|
|
18
|
-
## When NOT to use this skill
|
|
19
|
-
|
|
20
|
-
- The user wants a human-facing project README → that's `README.md`, not AGENTS.md.
|
|
21
|
-
- The user wants to set up the superpowers skills system → use `setup-skills`.
|
|
22
|
-
- The user wants to audit/improve a subagent prompt file → use `enhance-agent-prompts`.
|
|
23
|
-
|
|
24
|
-
## Workflow
|
|
25
|
-
|
|
26
|
-
Copy this checklist and track progress as you go:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
AGENTS.md Progress:
|
|
30
|
-
- [ ] Step 1: Detect ecosystem and locate inputs
|
|
31
|
-
- [ ] Step 2: Read existing instruction files (don't replace blindly)
|
|
32
|
-
- [ ] Step 3: Extract verifiable commands (build, lint, test, single test)
|
|
33
|
-
- [ ] Step 4: Infer code style and conventions from real source
|
|
34
|
-
- [ ] Step 5: Decide scope — single file vs. nested (monorepo)
|
|
35
|
-
- [ ] Step 6: Write or improve AGENTS.md
|
|
36
|
-
- [ ] Step 7: Self-review against the accuracy checklist
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Use `leveraging-cli-tools` throughout — prefer `rg`, `fd`, `bat`, `jq`, and `ast-grep` over slower alternatives. The detection commands below assume them.
|
|
40
|
-
|
|
41
|
-
### Step 1: Detect ecosystem and locate inputs
|
|
42
|
-
|
|
43
|
-
Identify the stack before reading anything in depth. This tells you which config files matter.
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# Manifests and lockfiles reveal the package manager and language
|
|
47
|
-
fd -H -d 2 '^(package\.json|pnpm-lock\.yaml|yarn\.lock|package-lock\.json|bun\.lockb|Cargo\.toml|go\.mod|pyproject\.toml|requirements\.txt|Gemfile|composer\.json|pom\.xml|build\.gradle)$'
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
The lockfile is the source of truth for the package manager: `pnpm-lock.yaml` → pnpm, `yarn.lock` → yarn, `bun.lockb` → bun, otherwise `package-lock.json` → npm. Use the right one in every command you document — telling an agent to run `npm test` in a pnpm repo is a factual error.
|
|
51
|
-
|
|
52
|
-
### Step 2: Read existing instruction files
|
|
53
|
-
|
|
54
|
-
Read each of these if present. The goal is to **improve, not overwrite** — preserve still-accurate content and fold in scattered rules.
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
fd -H -d 3 '^(AGENTS\.md|CLAUDE\.md|GEMINI\.md|\.cursorrules|copilot-instructions\.md)$'
|
|
58
|
-
fd -H -t f . .cursor/rules 2>/dev/null # Cursor rules live here as .mdc files
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
- **Existing `AGENTS.md`** — treat as the base. Keep what's correct, fix what's stale, fill gaps.
|
|
62
|
-
- **`.cursor/rules/*.mdc`, `.cursorrules`, `.github/copilot-instructions.md`, `CLAUDE.md`, `GEMINI.md`** — extract real rules (style, conventions, do/don'ts) and incorporate them verbatim or tightly summarized. Note their source so the user can later consolidate (see [Consolidating instruction files](#consolidating-instruction-files)).
|
|
63
|
-
|
|
64
|
-
### Step 3: Extract verifiable commands
|
|
65
|
-
|
|
66
|
-
These are the highest-value content — agents run them directly. Pull them from config, don't guess.
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
# Node: the scripts block IS the command list
|
|
70
|
-
jq '.scripts' package.json 2>/dev/null
|
|
71
|
-
|
|
72
|
-
# Other ecosystems: read the real task definitions
|
|
73
|
-
bat Makefile justfile Taskfile.yml 2>/dev/null
|
|
74
|
-
rg -n '\[tool\.(poetry|hatch|pdm)\.|^\[project\.scripts\]' pyproject.toml 2>/dev/null
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Capture: **build**, **lint**, **lint:fix/format**, **typecheck**, **test**, and crucially **how to run a single test in isolation** (e.g. `vitest run path/to/file.test.ts -t "name"`, `pytest path::test_name`, `go test ./pkg -run TestName`). Single-test invocation is the one agents most often get wrong, so derive it from the actual test runner rather than assuming.
|
|
78
|
-
|
|
79
|
-
If a command isn't defined anywhere, say how the tool is normally invoked for that runner — but only if the runner is actually present in the manifest.
|
|
80
|
-
|
|
81
|
-
### Step 4: Infer code style and conventions
|
|
82
|
-
|
|
83
|
-
Read formatter/linter config first (these are authoritative), then confirm against a representative sample of real source files.
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
fd -H -d 2 '^(\.eslintrc.*|eslint\.config\.*|\.prettierrc.*|prettier\.config\.*|biome\.json|\.editorconfig|ruff\.toml|\.rubocop\.yml|rustfmt\.toml|tsconfig\.json)$'
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Confirm by reading several source files in the primary language — don't document a rule the config implies but the code contradicts. Cover what an agent needs to match the house style:
|
|
90
|
-
|
|
91
|
-
- **Imports** — ordering, named vs. default, file extensions, path aliases.
|
|
92
|
-
- **Formatting** — quotes, semicolons, indentation, line length (usually settled by the formatter config — cite it).
|
|
93
|
-
- **Types** — strictness, annotation expectations, `any` policy.
|
|
94
|
-
- **Naming** — files, functions, variables, constants, components, CSS classes.
|
|
95
|
-
- **Error handling** — the pattern actually used (Result types, exceptions, error-wrapping helpers) and anything the codebase clearly avoids.
|
|
96
|
-
|
|
97
|
-
For naming/error patterns, prefer `ast-grep` or `rg` over eyeballing one file, so the convention you state reflects the codebase, not a single example.
|
|
98
|
-
|
|
99
|
-
### Step 5: Decide scope — single file vs. nested
|
|
100
|
-
|
|
101
|
-
AGENTS.md supports **nested files**: an agent reads the nearest one in the directory tree, so the closest file wins. For a monorepo, a per-package AGENTS.md often beats one bloated root file.
|
|
102
|
-
|
|
103
|
-
- **Single package** → one root `AGENTS.md`.
|
|
104
|
-
- **Monorepo** (workspaces in `package.json`, `pnpm-workspace.yaml`, Nx/Turbo/Lerna, multiple manifests) → write a root file with shared/global instructions, and offer to add per-package files where commands or conventions genuinely differ. Don't duplicate identical content into every package.
|
|
105
|
-
|
|
106
|
-
### Step 6: Write or improve AGENTS.md
|
|
107
|
-
|
|
108
|
-
Write to `AGENTS.md` at the repo root (or the relevant package root for nested files). It's plain Markdown with no required schema — use clear headings. Default to the structure below, dropping any section you have no real content for.
|
|
109
|
-
|
|
110
|
-
Keep it precise and scannable, written for an agent audience, with no prose padding. **~150 lines is a ceiling, not a goal** — let the real content set the length. A small library might warrant only 30–40 lines; a large monorepo more. If you find yourself adding material to fill space, stop: a short, fully accurate file is the win, and padding directly violates the facts-only principle.
|
|
111
|
-
|
|
112
|
-
```markdown
|
|
113
|
-
# AGENTS.md
|
|
114
|
-
|
|
115
|
-
Short orienting line: what this project is and the primary language/framework.
|
|
116
|
-
|
|
117
|
-
## Setup
|
|
118
|
-
- Install: `<exact command for this repo's package manager>`
|
|
119
|
-
- Env/prereqs: `<only if real — node version from .nvmrc/engines, services, etc.>`
|
|
120
|
-
|
|
121
|
-
## Commands
|
|
122
|
-
- Build: `<cmd>`
|
|
123
|
-
- Dev: `<cmd>`
|
|
124
|
-
- Lint: `<cmd>` | Fix: `<cmd>` | Typecheck: `<cmd>`
|
|
125
|
-
- Test (all): `<cmd>`
|
|
126
|
-
- Test (single): `<exact single-test invocation>`
|
|
127
|
-
|
|
128
|
-
## Code style
|
|
129
|
-
- Imports: `<order, named/default, extensions, aliases>`
|
|
130
|
-
- Formatting: `<quotes, semicolons, indent, width — cite the formatter>`
|
|
131
|
-
- Types: `<strictness, annotation rules, any policy>`
|
|
132
|
-
|
|
133
|
-
## Naming conventions
|
|
134
|
-
- Files / functions / variables / constants / components / CSS — only the rules that hold
|
|
135
|
-
|
|
136
|
-
## Error handling
|
|
137
|
-
- The pattern this codebase uses; what to avoid
|
|
138
|
-
|
|
139
|
-
## <Project-specific rules pulled from Cursor/Copilot/CLAUDE files>
|
|
140
|
-
- Folded-in rules, kept verbatim or tightly summarized
|
|
141
|
-
|
|
142
|
-
## PR / commit guidelines
|
|
143
|
-
- Only if the repo evidences a convention (commitlint, CONTRIBUTING.md, PR template, git log pattern)
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Adapt headings to the project. Sourced rules from `.cursor/rules`, Copilot, etc. should be merged into the relevant section above rather than ghettoized — but keep a short note of provenance if it helps the user consolidate later.
|
|
147
|
-
|
|
148
|
-
### Step 7: Self-review against the accuracy checklist
|
|
149
|
-
|
|
150
|
-
Before declaring done, re-read the file and verify every line:
|
|
151
|
-
|
|
152
|
-
```
|
|
153
|
-
- [ ] Every command was copied from a real script/task/config — not assumed
|
|
154
|
-
- [ ] The package manager matches the lockfile in every command
|
|
155
|
-
- [ ] A single-test invocation is present and correct for the actual runner
|
|
156
|
-
- [ ] Every style/naming/error rule traces to config or observed source
|
|
157
|
-
- [ ] Rules from Cursor/Copilot/CLAUDE files are incorporated, not lost
|
|
158
|
-
- [ ] No invented conventions, no aspirational rules, no generic filler
|
|
159
|
-
- [ ] An existing AGENTS.md was improved, not blindly replaced
|
|
160
|
-
- [ ] Length is set by real content, not a quota (≤ ~150 lines); agent-audience tone; scannable
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
If anything fails, fix it before finishing.
|
|
164
|
-
|
|
165
|
-
## Consolidating instruction files
|
|
166
|
-
|
|
167
|
-
A common (community, not part of the official spec) convention is to make AGENTS.md the single source of truth and symlink tool-specific files to it, so every tool reads the same content:
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
ln -sf AGENTS.md CLAUDE.md
|
|
171
|
-
ln -sf AGENTS.md GEMINI.md
|
|
172
|
-
ln -sf AGENTS.md .github/copilot-instructions.md
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
Only do this if the user asks. Flag it as optional and confirm first — it's a destructive change to existing files, and some teams deliberately keep tool-specific instructions separate.
|
|
176
|
-
|
|
177
|
-
## Edge cases
|
|
178
|
-
|
|
179
|
-
- **Empty or near-empty repo** — document only the scaffolding that exists (e.g. the manifest and its scripts). Don't pad.
|
|
180
|
-
- **Polyglot repo** — lead with the primary language; give each significant language its own command block.
|
|
181
|
-
- **Conflicting rules across instruction files** — prefer what the code and config actually do; note the conflict for the user rather than silently picking one.
|
|
182
|
-
- **No build/test tooling at all** — keep the file minimal and say so plainly, rather than inventing commands.
|
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: creating-prompts
|
|
3
|
-
description: Create structured prompts for Do/Plan/Research/Refine workflows with dependency management
|
|
4
|
-
metadata:
|
|
5
|
-
when_to_use: when you need to create focused, reusable prompts for specific tasks, research, planning, or refinement workflows
|
|
6
|
-
version: 5.1.0
|
|
7
|
-
languages: all
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Creating Prompts
|
|
11
|
-
|
|
12
|
-
## Overview
|
|
13
|
-
|
|
14
|
-
Create structured, reusable prompts for agent workflows. Prompts are focused instructions for specific tasks (Do), strategic planning (Plan), information gathering (Research), or iterative improvement (Refine).
|
|
15
|
-
|
|
16
|
-
**Core principle:** Prompts are lightweight, self-contained instructions that can be chained together through dependencies.
|
|
17
|
-
|
|
18
|
-
**Announce at start:** "I'm using the Creating Prompts skill to create a {purpose} prompt."
|
|
19
|
-
|
|
20
|
-
## When to Use
|
|
21
|
-
|
|
22
|
-
**Use this skill when:**
|
|
23
|
-
- Creating focused task instructions for agents
|
|
24
|
-
- Building multi-stage workflows (research → plan → implement)
|
|
25
|
-
- Need reusable prompts that can be executed independently
|
|
26
|
-
- Want to chain prompts with explicit dependencies
|
|
27
|
-
|
|
28
|
-
**When NOT to use:**
|
|
29
|
-
- For comprehensive implementation plans (use `writing-plans` skill instead)
|
|
30
|
-
- For features >100 LOC (use `writing-plans` for full roadmaps)
|
|
31
|
-
- One-off instructions (just give the instruction directly)
|
|
32
|
-
|
|
33
|
-
**Decision flowchart:**
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
Need instructions for agent?
|
|
37
|
-
├─ One-time task → Give instruction directly
|
|
38
|
-
├─ <100 LOC, focused → Create Prompt (this skill)
|
|
39
|
-
└─ >100 LOC, comprehensive → Use writing-plans skill
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Integration with Other Skills
|
|
43
|
-
|
|
44
|
-
**Before creating prompts:**
|
|
45
|
-
- For complex features → Use `brainstorming` skill to refine requirements first
|
|
46
|
-
- Unsure of approach → Start with Research prompt, then Plan, then Do
|
|
47
|
-
|
|
48
|
-
**After creating prompts:**
|
|
49
|
-
- Validate clarity → Use `testing-skills-with-subagents` to verify prompt works
|
|
50
|
-
- Execute prompts → Follow execution guidance (see below)
|
|
51
|
-
|
|
52
|
-
**Prompts vs Plans:**
|
|
53
|
-
- **Prompts**: Lightweight, focused, single-purpose (this skill)
|
|
54
|
-
- **Plans**: Comprehensive, multi-phase, detailed implementation (`writing-plans`)
|
|
55
|
-
|
|
56
|
-
See skills/collaboration/writing-plans for full implementation plans.
|
|
57
|
-
See skills/collaboration/brainstorming for design refinement before prompting.
|
|
58
|
-
|
|
59
|
-
## Configuration
|
|
60
|
-
|
|
61
|
-
Prompts are saved to configured directory (default: `.agents/prompts/`).
|
|
62
|
-
|
|
63
|
-
**Read config:**
|
|
64
|
-
```bash
|
|
65
|
-
superpowers-agent get-config prompts_dir
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
**Override globally:** `~/.agents/config.json`
|
|
69
|
-
```json
|
|
70
|
-
{
|
|
71
|
-
"prompts_dir": "custom/prompts"
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
**Override per-project:** `.agents/config.json`
|
|
76
|
-
```json
|
|
77
|
-
{
|
|
78
|
-
"prompts_dir": ".my-prompts"
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Priority: Project config > Global config > Default (`.agents/prompts/`)
|
|
83
|
-
|
|
84
|
-
## Prompt Types
|
|
85
|
-
|
|
86
|
-
### 1. DO Prompts - Execute and Produce
|
|
87
|
-
|
|
88
|
-
**When:** Implement feature, fix bug, create document, build component
|
|
89
|
-
|
|
90
|
-
**Output:** Code files, documentation, configurations, designs
|
|
91
|
-
|
|
92
|
-
**Template:** `skills/meta/creating-prompts/templates/do-template.md`
|
|
93
|
-
|
|
94
|
-
**Example:** `skills/meta/creating-prompts/examples/do-example.md`
|
|
95
|
-
|
|
96
|
-
### 2. PLAN Prompts - Strategy and Roadmap
|
|
97
|
-
|
|
98
|
-
**When:** Design architecture, plan refactoring, decide approach
|
|
99
|
-
|
|
100
|
-
**Output:** Structured plans with phases, dependencies, decisions
|
|
101
|
-
|
|
102
|
-
**Template:** `skills/meta/creating-prompts/templates/plan-template.md`
|
|
103
|
-
|
|
104
|
-
**Example:** `skills/meta/creating-prompts/examples/plan-example.md`
|
|
105
|
-
|
|
106
|
-
### 3. RESEARCH Prompts - Gather Information
|
|
107
|
-
|
|
108
|
-
**When:** Understand library, explore patterns, analyze options
|
|
109
|
-
|
|
110
|
-
**Output:** Findings with confidence levels, recommendations, open questions
|
|
111
|
-
|
|
112
|
-
**Template:** `skills/meta/creating-prompts/templates/research-template.md`
|
|
113
|
-
|
|
114
|
-
**Example:** `skills/meta/creating-prompts/examples/research-example.md`
|
|
115
|
-
|
|
116
|
-
### 4. REFINE Prompts - Iterative Improvement
|
|
117
|
-
|
|
118
|
-
**When:** Deepen research, strengthen plan, address gaps
|
|
119
|
-
|
|
120
|
-
**Output:** Updated version with changelog, archived previous version
|
|
121
|
-
|
|
122
|
-
**Template:** `skills/meta/creating-prompts/templates/refine-template.md`
|
|
123
|
-
|
|
124
|
-
**Example:** `skills/meta/creating-prompts/examples/refine-example.md`
|
|
125
|
-
|
|
126
|
-
## Quick Reference
|
|
127
|
-
|
|
128
|
-
| Prompt Type | Purpose | Output | Common Chain |
|
|
129
|
-
|-------------|---------|--------|--------------|
|
|
130
|
-
| Research | Gather info | Findings + recommendations | Research → Plan → Do |
|
|
131
|
-
| Plan | Strategy | Phases + decisions | Plan → Do |
|
|
132
|
-
| Do | Execute | Artifacts (code/docs) | Standalone or after Plan |
|
|
133
|
-
| Refine | Improve | Updated version | After any type |
|
|
134
|
-
|
|
135
|
-
## Workflow Checklist
|
|
136
|
-
|
|
137
|
-
**IMPORTANT: Use TodoWrite to create todos for EACH checklist item below.**
|
|
138
|
-
|
|
139
|
-
### Phase 1: Preparation
|
|
140
|
-
- [ ] Determine prompt purpose (Do/Plan/Research/Refine)
|
|
141
|
-
- [ ] If complex feature → Consider using `/brainstorm` first
|
|
142
|
-
- [ ] If >100 LOC implementation → Consider `writing-plans` skill instead
|
|
143
|
-
- [ ] Identify topic for naming (kebab-case: auth, stripe-integration)
|
|
144
|
-
- [ ] Check for existing prompts to reference (creates dependencies)
|
|
145
|
-
|
|
146
|
-
### Phase 2: Creation
|
|
147
|
-
- [ ] Get next number: `skills/meta/creating-prompts/scripts/get-next-number.sh`
|
|
148
|
-
- [ ] Get prompts directory: `superpowers-agent get-config prompts_dir`
|
|
149
|
-
- [ ] Load appropriate template from `skills/meta/creating-prompts/templates/`
|
|
150
|
-
- [ ] Fill in template with specific details (no placeholders)
|
|
151
|
-
- [ ] Add frontmatter metadata (number, topic, purpose, dependencies)
|
|
152
|
-
- [ ] Reference existing outputs with `@` syntax if chained
|
|
153
|
-
|
|
154
|
-
### Phase 3: Quality Checks
|
|
155
|
-
- [ ] Objective is clear and specific (not vague)
|
|
156
|
-
- [ ] Context includes all necessary background
|
|
157
|
-
- [ ] Requirements are testable/verifiable
|
|
158
|
-
- [ ] Output specification is concrete
|
|
159
|
-
- [ ] Success criteria are measurable
|
|
160
|
-
- [ ] For Research/Plan: includes confidence/assumptions/open questions
|
|
161
|
-
|
|
162
|
-
### Phase 4: Validation (Recommended)
|
|
163
|
-
- [ ] Test prompt with subagent (see `testing-skills-with-subagents`)
|
|
164
|
-
- [ ] Verify subagent understands requirements
|
|
165
|
-
- [ ] Check output matches expected structure
|
|
166
|
-
|
|
167
|
-
### Phase 5: Save and Execute
|
|
168
|
-
- [ ] Create directory: `{prompts_dir}/{number}-{topic}-{purpose}/`
|
|
169
|
-
- [ ] Create `completed/` subdirectory
|
|
170
|
-
- [ ] Save prompt: `{number}-{topic}-{purpose}.md`
|
|
171
|
-
- [ ] Execute prompt (agent reads and follows instructions)
|
|
172
|
-
- [ ] Agent creates output: `{topic}-{purpose}-output.md`
|
|
173
|
-
- [ ] Agent creates `SUMMARY.md` with findings/decisions/next steps
|
|
174
|
-
- [ ] Move prompt to `completed/` after execution
|
|
175
|
-
|
|
176
|
-
## File Structure
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
.agents/prompts/ # Configured location
|
|
180
|
-
├── 001-auth-research/
|
|
181
|
-
│ ├── 001-auth-research.md # The prompt
|
|
182
|
-
│ ├── completed/
|
|
183
|
-
│ │ └── 001-auth-research.md # After execution
|
|
184
|
-
│ ├── auth-research-output.md # Agent's output
|
|
185
|
-
│ └── SUMMARY.md # Executive summary
|
|
186
|
-
├── 002-auth-plan/
|
|
187
|
-
│ ├── 002-auth-plan.md
|
|
188
|
-
│ ├── completed/
|
|
189
|
-
│ ├── auth-plan-output.md
|
|
190
|
-
│ └── SUMMARY.md
|
|
191
|
-
└── 003-auth-do/
|
|
192
|
-
├── 003-auth-do.md
|
|
193
|
-
├── completed/
|
|
194
|
-
├── auth-do-output.md
|
|
195
|
-
└── SUMMARY.md
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
## Naming Convention
|
|
199
|
-
|
|
200
|
-
**Format:** `{number}-{topic}-{purpose}.md`
|
|
201
|
-
|
|
202
|
-
**Examples:**
|
|
203
|
-
- `001-auth-research.md` - Research authentication options
|
|
204
|
-
- `002-auth-plan.md` - Plan auth implementation
|
|
205
|
-
- `003-stripe-integration-do.md` - Implement Stripe
|
|
206
|
-
- `004-auth-research-refine.md` - Deepen auth research
|
|
207
|
-
|
|
208
|
-
**Topic naming:**
|
|
209
|
-
- Use kebab-case
|
|
210
|
-
- Be specific but concise
|
|
211
|
-
- Examples: `auth`, `stripe-integration`, `user-profile`, `api-refactor`
|
|
212
|
-
|
|
213
|
-
## Dependency Detection
|
|
214
|
-
|
|
215
|
-
Prompts can reference other prompt outputs to create chains.
|
|
216
|
-
|
|
217
|
-
**Syntax:** `@.agents/prompts/{folder}/{file}-output.md`
|
|
218
|
-
|
|
219
|
-
**Example in prompt:**
|
|
220
|
-
```markdown
|
|
221
|
-
<context>
|
|
222
|
-
Based on research: @.agents/prompts/001-auth-research/auth-research-output.md
|
|
223
|
-
Based on plan: @.agents/prompts/002-auth-plan/auth-plan-output.md
|
|
224
|
-
</context>
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
**Frontmatter dependencies:**
|
|
228
|
-
```yaml
|
|
229
|
-
---
|
|
230
|
-
number: 003
|
|
231
|
-
topic: auth-do
|
|
232
|
-
purpose: do
|
|
233
|
-
dependencies: [001, 002] # Must execute 001 and 002 first
|
|
234
|
-
created: 2025-11-21
|
|
235
|
-
---
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
## SUMMARY.md Template
|
|
239
|
-
|
|
240
|
-
Every prompt execution should create a `SUMMARY.md`:
|
|
241
|
-
|
|
242
|
-
```markdown
|
|
243
|
-
# {Topic} {Purpose} Summary
|
|
244
|
-
|
|
245
|
-
**One-liner:** [Substantive description of outcome, not generic]
|
|
246
|
-
|
|
247
|
-
## Key Findings
|
|
248
|
-
- [Actionable takeaway 1]
|
|
249
|
-
- [Actionable takeaway 2]
|
|
250
|
-
- [Actionable takeaway 3]
|
|
251
|
-
|
|
252
|
-
## Decisions Needed
|
|
253
|
-
- [What requires user input or approval]
|
|
254
|
-
- Or: "None"
|
|
255
|
-
|
|
256
|
-
## Blockers
|
|
257
|
-
- [External impediments preventing progress]
|
|
258
|
-
- Or: "None"
|
|
259
|
-
|
|
260
|
-
## Next Step
|
|
261
|
-
[Concrete forward action - what to do next]
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
## Execution Guidance
|
|
265
|
-
|
|
266
|
-
**How agents execute prompts:**
|
|
267
|
-
|
|
268
|
-
1. **Read the prompt** - Load `{number}-{topic}-{purpose}.md`
|
|
269
|
-
2. **Check dependencies** - Ensure referenced prompts completed first
|
|
270
|
-
3. **Follow instructions** - Execute according to prompt sections
|
|
271
|
-
4. **Create output** - Save to `{topic}-{purpose}-output.md`
|
|
272
|
-
5. **Create summary** - Save `SUMMARY.md` with findings
|
|
273
|
-
6. **Archive prompt** - Move to `completed/` subfolder
|
|
274
|
-
|
|
275
|
-
**For agents with Task/subagent capabilities:**
|
|
276
|
-
- Spawn fresh agent with prompt as instruction
|
|
277
|
-
- Agent produces output and summary
|
|
278
|
-
- Main agent reviews and archives
|
|
279
|
-
|
|
280
|
-
**For manual execution:**
|
|
281
|
-
- Open prompt in editor
|
|
282
|
-
- Follow instructions step-by-step
|
|
283
|
-
- Create output and summary files
|
|
284
|
-
- Move prompt to completed/
|
|
285
|
-
|
|
286
|
-
## Common Mistakes
|
|
287
|
-
|
|
288
|
-
### ❌ Vague objectives
|
|
289
|
-
```markdown
|
|
290
|
-
<objective>
|
|
291
|
-
Research authentication
|
|
292
|
-
</objective>
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
### ✅ Specific objectives
|
|
296
|
-
```markdown
|
|
297
|
-
<objective>
|
|
298
|
-
Research JWT authentication libraries for Node.js Express API to determine best option for TypeScript project with security focus
|
|
299
|
-
</objective>
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### ❌ Missing context
|
|
303
|
-
```markdown
|
|
304
|
-
<context>
|
|
305
|
-
Current codebase
|
|
306
|
-
</context>
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
### ✅ Concrete context
|
|
310
|
-
```markdown
|
|
311
|
-
<context>
|
|
312
|
-
Express API in src/server.js, routes in src/routes/
|
|
313
|
-
Currently no authentication, all endpoints public
|
|
314
|
-
Must integrate with existing PostgreSQL user table
|
|
315
|
-
@src/server.js
|
|
316
|
-
@src/routes/api.js
|
|
317
|
-
</context>
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
### ❌ Generic requirements
|
|
321
|
-
```markdown
|
|
322
|
-
<requirements>
|
|
323
|
-
Should work well
|
|
324
|
-
Be secure
|
|
325
|
-
</requirements>
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
### ✅ Testable requirements
|
|
329
|
-
```markdown
|
|
330
|
-
<requirements>
|
|
331
|
-
- Verify JWT tokens in Authorization header
|
|
332
|
-
- Return 401 for invalid tokens
|
|
333
|
-
- Return 403 for expired tokens
|
|
334
|
-
- Extract user ID and attach to req.user
|
|
335
|
-
- No performance impact >10ms per request
|
|
336
|
-
</requirements>
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
## Credits
|
|
340
|
-
|
|
341
|
-
This skill is an agent-agnostic adaptation of TÂCHES' excellent [`create-meta-prompts` skill](https://github.com/glittercowboy/taches-cc-resources/tree/main/skills/create-meta-prompts).
|
|
342
|
-
|
|
343
|
-
TÂCHES pioneered the concept of structured prompt-to-prompt workflows with dependency management and multi-stage execution. This adaptation maintains the core concepts while making them accessible across all AI coding assistants (OpenCode, GitHub Copilot, Cursor, Gemini, Claude, etc.).
|
|
344
|
-
|
|
345
|
-
**Original author:** TÂCHES ([@glittercowboy](https://github.com/glittercowboy))
|
|
346
|
-
|
|
347
|
-
**Original repository:** https://github.com/glittercowboy/taches-cc-resources
|
|
348
|
-
|
|
349
|
-
Thank you to TÂCHES for the innovative work on meta-prompt patterns!
|