No slash command · from archon-os
Loads project conventions and generates session context on demand. Reads host-project docs, caches context, and loads config files for code generation, refactoring, and test writing.
Ships in archon-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AI-consumed reference. Optimized for Claude to read during execution. Human-readable explanation: see docs/architecture/HIERARCHICAL_PLANNING.md or docs/getting-started/ depending on topic.
Load project conventions and generate session context on demand.
Before: /run, code generation, refactoring, test writing.
Skip: Simple questions (no code), when session-context.toon already loaded.
Before any cache or generated context, read the host project's own documentation — it is written by humans and overrides anything this skill infers:
| File | Priority |
|---|---|
CLAUDE.md (root) and/or .claude/CLAUDE.md | Highest — project instructions (per rules/workflow/priority-hierarchy.md) |
README.md (root) | High — purpose, setup, run commands, structure |
CONTRIBUTING.md (if present) | Conventions for changes |
Read them fully on first load of a session (they are usually short). On conflict between these and generated context below, the host project's docs win — refresh the cache instead of trusting it.
If .claude/session-context.toon exists and is recent (< 1 hour), use it.
Scan codebase for: file naming, import style, export pattern, error handling, testing framework, styling approach. Write to .claude/session-context.toon.
From .claude/project-contexts/[project]/:
| File | When |
|---|---|
project-config.yaml | Always |
conventions.md | Always |
rules.md | Always |
repo-map.md | First task |
file-registry.yaml | When modifying code |
architecture.md | Architecture decisions |
loading_strategy[4]{scenario,files_to_load}:
Simple question,session-context.toon only
Bug fix / small change,"session-context.toon + conventions.md + file-registry.yaml"
New feature / refactor,All 7 files
Architecture decision,"session-context.toon + architecture.md + repo-map.md"
Token budget: Simple ~200, Bug fix ~800, Full ~2000, Architecture ~1000.
project:
name: {name}
stack: {detected}
patterns[7]{type,convention,example}:
file_naming,PascalCase,UserProfile.tsx
imports,absolute @/,import { Button } from '@/components/Button'
exports,named,export const UserCard = ...
errors,result,return { ok: true, data }
testing,vitest,describe('UserCard', () => ...)
styling,tailwind,className="flex items-center"
...
bash scripts/context-compress.sh -- generate contextrm .claude/session-context.toon -- force rescanWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nguyenthienthanh/archon --plugin archon-os45 skills in this plugin
/agent-detectorCRITICAL: MUST run for EVERY message. Detects agent, complexity, AND model automatically. Without this, tasks route to wrong agents and use wrong models, degrading quality and wasting tokens./api-designerDesigns RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs./bugfix-quickFast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return./chain-of-verificationDraft → generate verification questions → answer independently via tools → revise. Catches hallucinated facts in reports and reviews. MANDATORY for Phase 4 security/test claims. Paper: Dhuliawala et al. 2023./code-mapReverse-dependency lookup — "I am about to change this file, what breaks?" Use when assessing the blast radius of an edit, finding every importer of a module (including the ones that never name it), or checking what the startup code-map digest was derived from. Not for finding text: grep is better at that./code-reviewer8-aspect evidence-based code review/audit (security, correctness, compatibility, architecture, error handling, test gaps, type safety, simplicity) built on Google eng-practices, OWASP Top 10:2025, CWE Top 25, SemVer. Every finding needs file:line + a concrete failure scenario. Use when the user asks to review/audit code, check a PR, review before merge, in TDD Phase 4, via /check review or /run review.Other plugins' skills for the same job