Coding Process
This is the entry point for all work. It identifies the task type and routes to the appropriate workflow.
Process
-
Load context:
- Read relevant standards from
.agents/standards/(checkindex.ymlfirst) - Read relevant common-mistakes from
.agents/common-mistakes/(checkindex.ymlfirst) - Check
.plans/for any existing plan files related to the current work
- Read relevant standards from
-
Identify the task type from the user's description:
Task Type Route To Trigger Small feature / endpoint / component / config plan-smallSelf-contained, fits in one PR Large feature / multi-system / architectural plan-largeMulti-day, multiple PRs, sequencing dependencies Delete feature / remove dead code / drop dependency remove-codeRemoving capability Bug fix / error / crash / wrong behavior fix-bugSomething is broken Code review / audit / PR review code-auditReviewing code quality Aggressive cleanup of changes + tangibly-related code code-audit-hardcoreSame scope as code-audit, always-improve posture across related code (setup, wiring, siblings); big refactors route through plan skills Large PR review (30+ files) review-large-prPR too large for single audit Refactor / improve without behavior change refactorImproving existing code Understand / explore / onboard learn-systemBuilding mental models -
Route to the appropriate skill and follow its process.
Rules
- Think in systems. Every workflow solves the class of problems, not only the instance in front of it. Name the class and the system that produces it, then build at that level. A one-off works once; the next case needs another patch, and patches pile up. The class must be real: other members exist now, or the system clearly produces more.
- Always load standards and common-mistakes before starting any workflow
- If the task type is ambiguous, ask the user to clarify
review-plan(Workflow 8) andimplement-plan(Workflow 9) are invoked directly when needed — they are not routed from herehacis invoked directly when the user suspects that a proposal cuts corners- If a plan file exists in
.plans/, reference it and resume from where the last session left off - Big-output discipline. Heavy command output (project check, full
git diff, repo-wide search, long log, large fetch) goes to/tmp/hawk-<skill>-<step>.log, thenrg -n '<pattern>' /tmp/hawk-<skill>-<step>.log | head -50extracts what you need. Read only the required lines from the file. See README → Big-output discipline.


