From aiot-ai-agent-skills
Plan-first development workflow. Enforces Research → Plan → Annotate → Implement phases with human-in-the-loop review gates. Never write code until the plan is approved. Use for any non-trivial feature, refactor, or bug investigation. Triggers on: research, plan, annotate, todo, implement, resume, status, team-based implementation, multi-agent coordination, code review workflow, plan-first development.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aiot-ai-agent-skills:plancraftThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Core principle:** Never write code until you've produced a written plan and the human has reviewed and approved it.
Core principle: Never write code until you've produced a written plan and the human has reviewed and approved it.
Use when: changes span >1 file, estimated work is >30 minutes, architectural decisions are involved, you're unfamiliar with the subsystem, the change has downstream dependencies, or bug root cause is unclear.
Skip when: one-line fix, typo/formatting, adding a simple test, config changes with no logic.
Research → Plan → Annotate (1-6x) → Todo → Implement → Feedback
↑
Resume (if session interrupted)
Each phase produces a persistent markdown artifact. Never give verbal summaries — always write to files.
.plancraft/
├── research.md
├── plan.md
└── references/ # optional: reference implementations
Add .plancraft/ to .gitignore if artifacts shouldn't be committed.
Every task must meet ALL criteria before it can pass verification:
Minimum Bar (non-negotiable):
Quality Bar (required for task approval):
Both qa-verifier and product-manager use this as their rubric.
Trigger: plancraft research or starting any non-trivial task.
research.md"Research complete. Written to
research.md. Please review before I proceed to planning."
Trigger: Human approves research, or plancraft plan.
Produce a detailed implementation plan in plan.md. Use the template from references/plan-template.md.
"Plan written to
plan.md. Please review and add any inline annotations before I proceed."
Trigger: Human says they've added notes, or plancraft annotate.
Human adds inline notes using > **[NOTE]:** prefix. Annotation types:
| Prefix | Meaning |
|---|---|
[NOTE] | General feedback |
[REJECT] | Remove this section |
[CONSTRAINT] | Hard rule, don't change |
[QUESTION] | Agent should answer |
Address ALL annotations. Move resolved notes to the Resolved Annotations section. Never jump to code during annotation.
"All notes addressed. Plan updated. [N] annotations resolved. Ready for another review or shall I proceed to the todo list?"
Trigger: Human approves the plan, or plancraft todo.
Add a granular checklist to the Todo section of plan.md:
## Todo
### Phase 1: [Name]
- [ ] Task 1 — specific, actionable description
- [ ] Task 2
- [ ] ✅ Validate: run typecheck
### Phase 2: [Name]
- [ ] Task 3
- [ ] ✅ Validate: run tests
Rules:
"Todo list added to
plan.md— [N] tasks across [M] phases. Review the breakdown and approve to start implementation."
Trigger: Human approves todo list, or plancraft implement.
Goal: Execute the plan mechanically. No creative decisions — those were made in planning.
Before writing any code, execute this checklist in order:
plan.md Team Roles table — does the plan define team roles?⛔ HARD RULE: Never skip this check. Never implement solo when the plan has Team Roles and the Agent tool is available. This is the #1 most common mistake — defaulting to solo because it's easier. Always spin up the team.
git checkout -b plancraft/<feature-name>
See references/team-workflow.md for the full team workflow including:
See references/prompt-templates.md for developer, qa-verifier, and product-manager prompt templates.
The human's role shifts to supervisor. Expect terse corrections:
git checkout . # Revert to clean state
Never patch a bad approach. Revert and re-scope.
Trigger: All tasks approved, before final commit. Mandatory for team-based implementation.
Write to the Retrospective section of plan.md:
If recurring patterns emerge, suggest updates to the project's CLAUDE.md or documentation.
Trigger: plancraft resume — after context compaction, session restart, or agent handoff.
plan.md — understand objective, approach, all changes[x]) and remaining ([ ]) tasksresearch.md if remaining tasks need contextgit diff and git log for what's already implementedTrigger: plancraft status at any time.
## Plancraft Status
**Phase:** Implementation (Phase 5)
**Branch:** plancraft/feature-name
**Progress:** 7/12 tasks complete (58%)
### Completed:
- [x] Task 1 — description
### Remaining:
- [ ] Task 8 — description
### Blockers:
- None / [describe issue]
| Command | What it does |
|---|---|
plancraft research | Deep-read codebase, write research.md |
plancraft plan | Write implementation plan to plan.md |
plancraft annotate | Address inline notes in plan.md |
plancraft todo | Add granular task checklist to plan.md |
plancraft implement | Execute plan on feature branch |
plancraft resume | Recover context from plan.md |
plancraft status | Show current phase and progress |
npx claudepluginhub aiotnetwork/aiotaiagentskills --plugin aiot-ai-agent-skillsGuides software development through six-phase workflow: Research, Plan, Iterate Plan, Experiment, Implement, Validate. Generates structured markdown docs via slash commands for auditable trails.
Creates detailed technical implementation plans via interactive research, iteration, user questions, and autonomy modes (Autopilot, Critical, Verbose). Activated by /create-plan or planning requests.