context
Prime an APXM session before broad work — runs doctor, reads AGENTS.md and the relevant _shared rules, surfaces subsystem ownership, and recalls APXM memory. Run at the start of any session that will touch >1 file or any non-trivial change.
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- context
- group
- Lifecycle
- description
- Prime an APXM session before broad work — runs doctor, reads AGENTS.md and the relevant _shared rules, surfaces subsystem ownership, and recalls APXM memory. Run at the start of any session that will touch >1 file or any non-trivial change.
- user-invocable
- true
03 SKILL.md 正文
APXM Context
Load context before broad work so you don't make confident wrong assumptions about the project. Run this at the start of every session that will touch more than one file or any non-trivial change. Skip only for typo fixes or single-line edits.
What this skill does
- Verify env —
dekk agents doctor. Catches a misconfigured conda env, stale MLIR build, or missingLLM_GATEWAY_KEYbefore any work starts. - Surface live AIS op list if AIS dialect work is anticipated —
dekk agents ops list. Confirms what's actually defined incrates/machine/ais/rather than what you remember. - Read project memory:
AGENTS.md— the SSOT.- The closest relevant
_shared/rule(s):- Code edits →
_shared/apxm-development-rules.md - Touching
~/.apxm/config.toml, HF cache, zoo manifests, build paths →_shared/apxm-storage-layout-rules.md - Anything with a git mutation →
_shared/apxm-agent-operating-rules.md
- Code edits →
- Read the closest subsystem doc:
- Compiler/passes →
docs/compiler/pipeline.md - Backends and Port bindings →
docs/agents/portable-core-interface-contract.md - Capability admission, Port bindings, checkpoints, confinement, or
evidence →
docs/agents/portable-core-interface-contract.md,docs/agents/agent-program-composition-and-air-contract.md
- Compiler/passes →
- Recall memory — APXM has 20+ memories in
~/.claude/.../memory/. Always check for matches on:apxm_*,feedback_*. Especially:apxm_positioning(don't call APXM "an agent framework")apxm_phase_status(what's actually shipped)feedback_no_referential_commentsfeedback_no_kill_user_slurm
- Confirm subsystem ownership:
- Compiler edits →
crates/compiler/ - Runtime edits →
crates/runtime/ - AIS op edits →
crates/machine/ais/only (everything else consumes) - Backend glue →
crates/runtime/backends/
- Compiler edits →
Output
A brief summary back to the user:
- What subsystem the work targets.
- What rules apply.
- What doctor reported.
- What memory was relevant.
Then proceed to plan (if non-trivial) or to the edit itself
(if trivial).
Anti-patterns
- Skipping doctor because "I just ran it last session".
- Starting compiler work without checking
crates/machine/ais/is the op-defining owner. - Quoting old AIS op names from memory instead of
dekk agents ops list. - Skipping memory recall — most past incidents are documented.
04 同仓库更多 Skills
review
How this agent reviews a change before it answers.
persona
How the Conversational agent presents itself and what it is for.
context-policy
What remembered context this agent may use and what it may not repeat.
simplify
Pre-finish review pass — remove copied _shared text, weak abstractions, referential comments, and over-large skill bodies before claiming completion. Mandatory before finish and any commit.
plan
Produce a written plan before non-trivial APXM implementation. Required for changes touching >3 files, modifying a public API or AIS op, or needing Slurm GPU allocation. Enforces APXM-specific gates (AIS-op-vs-compose decision, dialect-codegen impact).
mlir-pass-development
Use when adding, modifying, or reordering MLIR passes in the APXM compiler pipeline. Enforces the single pass-list source of truth in apxm-ais, the AIS ownership rule, and the build-dialect + codegen cadence after .td edits.