Install
npm add @cat-kit/agent-context
Verify API
generated/ under .d.ts consistent with npm dist ; ESM JavaScript files in the release artifact uniformly use the .js suffix, and the scripts required for Skill installation are published in dist/skill/scripts/。
Runtime environment: Node.js (CLI / toolchain).
Skill artifact conventions
agent-context install generated ac-workflow aligns with Agent Skills progressive disclosure:
- By default, only
.agents/skills/ac-workflow/is rendered as the canonical source;--toolsonly creates an optional compatibility entry point - The compatibility entry point preferentially symlinks / junctions to the canonical source; when symlinks are unsupported or a regular directory already exists, it syncs via copy fallback
SKILL.mdis a short navigation entry point:onestartup command (node <SKILL_DIR>/scripts/get-context-info.js, which also performs format validation), looks up the routing table by status + user intent, then reads the protocol- The full protocol text is located in
references/*.md, and after the action is determined, only the corresponding file is read references/ask-user-question.mdcontains the red line of "when to prohibit asking questions" and the reverse follow-up questioning method; the protocol does not hardcode host tool namesreferences/_principles.mdis the shared professional competency baseline for the planning / implementation / review roles; the protocol only references it without repeating it- Context status and numbering come from
scripts/get-context-info.jsoutput (JSON + exit code); agentsare prohibited from scanning directories on their own to infer scripts/validate-context.jsserves only as an independent validation fallback when the main script fails to startdescriptionneeds to avoid accidental triggering by ordinary coding, code review, planning, or mereAGENTS.mdmodifications- The
reviewfollow-up at the end of the protocol is triggered by complexity thresholds (scope of impact, external APIs, databases, security-sensitive, etc.), and is no longer asked every time rushscenarios are prohibited from triggering mandatory reverse follow-up questioning; if a task requires reverse follow-up questioning, switch toplanagent-context context/skill-evalprovides a CLI-equivalent integration point;prompt-gengenerates a general template by default; personal preferences go through--profile whj