Aet Prime
Published by getatelier in ae-toolkit
What this skill does
Session context loading and intake triage. Use at the start of every new coding session to classify incoming work, load project context, and route to the correct skill and pipeline. Triggers on requests like "prime the session," "load context," "what should we build next?", or any new task.
Add Aet Prime to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "aet-prime" from https://github.com/getatelier/ae-toolkitInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/getatelier/ae-toolkit --skill aet-primeSkill instructions
aet-prime
Triage front door for agentic engineering. Every session starts with classification — then context loading — then routing to the right pipeline.
When to Use
- Starting a new coding session
- Switching from planning to a new implementation session
- Returning to a project after time away
- Picking up a new ticket from the backlog
- Any time a new request arrives that needs routing
Shared Preamble
Before executing any command in this skill, collect the following context:
BRANCH— current git branchREPO_STATE— clean / dirty / merge-conflictAGENTS_MD— presence and last-modified date of AGENTS.mdLEARNINGS— top-3 relevant entries from.agents/learnings.jsonl(if exists)ACTIVE_PLAN— anydocs/plans/*.mdmodified in last 7 daysLAST_PIV— date of last completed plan-implement-validate cycle (from git log if available)ACTIVE_PRD_STAGE— current*Stage:value from the most-recently-modifieddocs/prds/*.mdfooter (if exists)ACTIVE_PLAN_STAGE— current*Stage:value from the most-recently-modifieddocs/plans/*.mdfooter (if exists)
Use this context to ground all recommendations. Do not ask the user to provide it manually.
Commands
prime
Load project context and classify the incoming request before any coding.
Procedure:
Step 0 — Load context
- Read
AGENTS.mdat project root (always — this is the foundation) - If a ticket ID or plan.md is provided, read that specific
docs/plans/{ticket}-plan.md - If no specific ticket, read the most recently modified PRD from
docs/prds/ - Read recent git commits (last 5–10) to understand current patterns and conventions
- Check the current branch name for context
- If working on a specific area, load the relevant
.agents/reference/doc on demand
Step 1 — Intake classification
Ask the user (or infer from the request):
- "Does this touch auth, sessions, permissions, passwords, data models, migrations, infrastructure, or bump a dependency by major/minor version?"
- If yes → class = critical
- "Is this a reproducible misbehavior of existing code (bug, crash, error, unexpected behavior)?"
- If yes → route to
aet-bug-report, not a planning pipeline
- If yes → route to
- "How many files and lines do you estimate this will touch?"
- ≤ 1 file / ≤ 5 lines → class = trivial
- Everything else → class = normal
Step 2 — Route by work class
| Class | Pipeline | Plans? | QA Gate |
|---|---|---|---|
| Trivial | Direct edit → make validate → aet-ship | No | Diff review only |
| Normal | Quick plan (≤ 4 tasks) → aet-implement → auto checks → aet-ship | Yes, lightweight | Automated tests |
| Critical | Full PRD → aet-tdd → aet-implement → aet-qa → aet-review → aet-verify → aet-ship | Yes, full | Observed evidence |
Routing rules:
- Trivial: "fix typo", "change button color", "update copy" — skip
aet-plan,aet-tdd,aet-qa,aet-review. Edit, validate, ship. - Normal: "add email field", "new list endpoint", "simple modal" — use lightweight plan (≤ 4 tasks, no full PRD). Skip
aet-verify. - Critical: "add OAuth", "migrate database", "upgrade framework" — full ceremony. No shortcuts.
- Bug: Any reproducible defect →
aet-bug-report.aet-planandaet-pipeline-planmust reject bug reports.
Step 3 — Summarize and confirm
- Summarize the loaded context in 5–10 bullets
- State the assigned work class and pipeline
- Ask: "Based on the PRD/plan, what should we build next?" or route to the appropriate skill
What NOT to load:
- The full codebase (too much context)
- All reference docs at once (load on demand only)
- Old plans/PRDs unrelated to current work
- Test output or build artifacts
Git-as-memory pattern:
- Recent commits reveal: coding style, file organization patterns, testing conventions, commit message style
- Look for recurring patterns in commit messages (e.g., "feat:", "fix:", conventional commits)
- If a commit touched a file you're about to modify, read that commit's diff for guidance
Key Principles
- Classify first — every request gets a work class before any skill runs
- Context window is precious — load only what's needed for the immediate task
- Git is long-term memory — recent commits guide what comes next better than any static doc
- On-demand reference loading —
.agents/reference/docs are task-specific; don't preload them all - Prime before every session — even a 30-second prime prevents hours of misalignment
- Proportionality — trivial work gets trivial ceremony; critical work gets full ceremony
Files included
- examples/README.md
- references/context-budget.md
- references/git-as-memory.md
- references/README.md
- references/routing-rules.md
- SKILL.md

