prd-classify
Skill47 starsChanged 6 months agoApache-2.0View on GitHub
Classify an Automatos PRD into Rehouse / Refactor / Extension / Net-new before estimating, so the right amount of reuse vs build is planned. Use when starting any PRD on this codebase.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- register-toolSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Platform tools: read orchestrator/core/platform/platform_actions.py
- Distinctive: line 32
If any of these already exist, list them with paths before proceeding.
- Distinctive: line 45
If anything is unclear, ask before estimating.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PRD Classifier
Slash command: /prd-classify <PRD#> or /prd-classify (then paste the PRD).
This skill enforces CLAUDE.md §3 ("REUSE over BUILD"). It surfaces existing surfaces in the codebase before estimating, so a PRD doesn't get costed as net-new when it's actually a relabel.
Workflow
1. Read the PRD
Locate the PRD file in docs/PRDs/ or wherever the user dropped it. Read it end-to-end. Note:
- The stated goal
- The user-facing artifacts mentioned (pages, components, tables, tools, agents)
- Any "build / create / add" language
2. Map existing surfaces (mandatory)
For each artifact mentioned in the PRD, check what already exists. Use parallel searches:
- Frontend components:
grep -rli "<artifact>" frontend/components/ - Hooks:
find frontend/hooks -type f | xargs grep -li "<artifact>" - API routers:
grep -rl "@router\." orchestrator/api/ | xargs grep -l "<artifact>" - DB tables:
grep -rE "class \w+\(.*Base" orchestrator/modules/ orchestrator/core/ | grep -i "<artifact>" - Platform tools: read
orchestrator/core/platform/platform_actions.py - Skills:
ls ../automatos-skills/ - Knowledge graph: query
graphify-out/graph.json(if present) for related nodes
If any of these already exist, list them with paths before proceeding.
3. Classify
Pick exactly one classification:
| Type | Signal | Default action |
| Rehouse / IA change | "Move X from Y to Z", "rename", "redesign page" | Components/hooks/APIs exist. Move/relabel, don't rebuild. |
| Refactor / Consolidation | "Unify X and Y", "deprecate", "single source of truth" | Pick canonical path, migrate others, delete the losers. |
| Extension | "Add X to existing Y" | New code is the increment, not the system. |
| Net-new feature | No precedent in the platform | Justify why it doesn't fit an existing pattern. |
4. Surface ambiguity
If anything is unclear, ask before estimating. Examples:
- "PRD says 'build the Reports page' — I see
frontend/components/activity/activity-reports.tsx. Is the PRD adding to it or replacing it?" - "There are 3 things called
task_*in the schema. Which one does this touch?" - "The PRD reads like a config dial — should this be a setting, not a new code path?"
5. Report
Output the classification, the existing surfaces found, and a one-paragraph plan with the next concrete step. Do NOT start coding — /prd-classify is a research command.
Output format
PRD-XXX classification: <Rehouse|Refactor|Extension|Net-new>
Existing surfaces:
- <path/to/file.tsx> — <one-line of what it does>
- <path/to/file.py> — <one-line>
- ...
Reuse plan:
- Reuse: <thing>
- Extend: <thing>
- Build: <thing> (justify why nothing fits)
- Delete: <thing> (what gets superseded — see CLAUDE.md §5)
Open questions for the user:
- <question 1>
- <question 2>
Next step: <one concrete action>Anti-patterns to avoid
- Starting with code before classification
- Assuming "build X" means "build from scratch" when X exists
- Skipping the graph search because grep felt faster
- Padding the "Build" column when "Extend" would do
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

