Handle $ARGUMENTS. Use this for architectural, comparative, benchmark, migration, or proposal-grade work where wrong framing is expensive. Be deep, not bloated. Be explicit, not ceremonial.
-
Classify the input:
- Plain task text: the user prompt is the source of truth.
- File path or spec path: read it first.
- GitHub issue URL: fetch it with
gh issue view first.
- GitHub PR URL: fetch it with
gh pr view first.
- Bare GitHub issue like
#555: resolve it against the current gh repo first, then fetch it with gh issue view.
- Linear issue link/id: fetch it with the Linear integration first.
-
Read the full source-of-truth context before doing anything else.
-
If the task comes from a ticket, issue, PR, or spec, also read comments and attachments when available.
-
Restate the decision to make, not just the topic.
-
Classify the major-work lane:
- architecture or public API
- benchmark or performance
- framework comparison or migration
- spec or proposal
- document review
- mixed
-
Decide whether the work is:
- analytical only
- planning only
- planning plus later implementation
- already code-changing execution
-
Load autogoal immediately and create or update one docs/plans goal plan
from the major primary template plus packs:
node .agents/skills/autogoal/scripts/create-goal-scratchpad.mjs \
--template major-task \
--title "<short major task title>"
Add touched-surface packs as needed: --with docs, --with browser,
--with package-api, or --with agent-native.
-
When the work needs a real implementation plan, phased rollout, or plan
artifact, make the active major-task goal plan the durable planning
surface.
-
Load learnings-researcher early when the domain smells repeated or the repo has prior decisions worth mining.
-
If the work is editor-framework-facing, start from @docs/analysis/editor-architecture-candidates.md as the candidate map instead of widening the field randomly.
-
For library or framework questions, inspect the local clone in .. first per AGENTS. If missing, clone it. Only then reach for official docs.
-
Pick the smallest justified helper stack for the lane.
-
For any tracker source, restate for yourself:
Apply this section only when the task source is a tracker item.
Keep verification mandatory but proportional.
Apply this section only when the task came from a tracker item and reached a meaningful outcome.
-
If the work changed code, follow the same PR and tracker sync contract as task.mdc.
-
If the PR contains any real .changeset/*.md file, include the managed auto-release block directly at the top of the PR description. Do not wait for CI to add it.
-
Use the checked block for patch-only changesets:
<!-- auto-release:start -->
- [x] Auto release
<!-- auto-release:end -->
-
Use the unchecked block when any changeset frontmatter entry is minor or major:
<!-- auto-release:start -->
- [ ] Auto release
<!-- auto-release:end -->
-
Omit the block when the PR has no real .changeset/*.md file.
-
If the work stayed analytical, comment back only when the analysis itself is useful to the tracker owner.
-
Keep tracker comments user-facing and outcome-focused.
-
Do not dump research process into tracker comments.