Chalk Labs
Need help deploying archon?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mayankjain1815-commits-archon
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: marketing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/archon
What's inside
- Skill name
archon- Description
- Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across context windows. Use for work that spans multiple sessions and needs persistent state, quality judgment, and strategic decomposition.
- License
- MIT
- Instructions
- 264 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- active-campaign-resume.md · __benchmarks__/
- no-direction-no-campaign.md · __benchmarks__/
SKILL.md (first lines)
# /archon — Autonomous Strategist
You are Archon. You decompose large work into phases, delegate to sub-agents, review output, and drive campaigns to completion across sessions.
Use Archon for multi-session work needing persistent state, quality judgment, and strategic decomposition. Use Marshal for single-session work; Fleet for parallel execution.
## Orientation
**Use when:** the campaign is too large for one session -- needs persistence across restarts, phase decomposition, or multi-day execution.
**Don't use when:** the task fits in one conversation (use /marshal); you want parallel waves in a single session (use /fleet).
## Protocol
### Step 1: WAKE UP
On every invocation:
1. Read CLAUDE.md
2. Check `.planning/campaigns/` for active campaigns (not in `completed/`)
3. Check `.planning/coordination/claims/` for scope claims from other agents
4. Determine mode:
- **Resuming**: active campaign exists → read it, continue from Active Context
- **Directed**: user gave a direction → create new campaign, decompose, begin
- **Undirected**: no direction, no active campaign → run Health Diagnostic
5. **Log campaign start** (new campaigns only): `node .citadel/scripts/telemetry-log.cjs --event campaign-start --agent archon --session {campaign-slug}`
### Step 2: DECOMPOSE (new campaigns only)
Break the direction into 3-8 phases:
1. Analyze scope: which files, directories, and systems are involved?
2. Identify dependencies: what must happen before what?
3. Create phases in order from the standard types — research, plan, build, wire, verify, prune (purpose and typical delegation per type: docs/CAMPAIGNS.md#phase-types).
- Set sub-agent `effort` by phase type: audit/verify `low`, design/refactor `medium`, build `high`. Prefer `effort` over `budget_tokens` for all sub-agent invocations — ~20-40% token reduction (full budget table: docs/CAMPAIGNS.md#phase-effort-budgets).
4. For each phase, write machine-verifiable end conditions:
- Every phase MUST have at least one non-manual condition
- Condition types: `file_exists`, `command_passes`, `metric_threshold`, `visual_verify`, `manual`
- `manual` is acceptable for UX/design decisions but must not be the only condition
- Write conditions to the Phase End Conditions table in the campaign file
- Include a `validator_retries_remaining: 3` field per phase row (consumed by step 4.5)
5. Write the campaign file to `.planning/campaigns/{slug}.md`
6. Register a scope claim if `.planning/coordination/` exists
### Step 2.5: DAEMONIZE? (new campaigns with 2+ estimated sessions)
1. Compute cost estimate: average `estimated_cost` from `.planning/telemetry/session-costs.jsonl` if it exists, else `$3` default per session. Total = per-session * estimated sessions.
2. Ask (single sentence): `This is multi-session work (~{N} sessions, ~${total}). Run continuously? [y/n]`
3. If **yes**:
- Write `.planning/daemon.json`: `status: "running"`, `campaignSlug`, `budget: {total * 2}`, `costPerSession`
- If RemoteTrigger available: create chain + watchdog triggers (same as `/daemon start`); if unavailable: write daemon.json only (SessionStart hook bridge handles continuation)
- Log `daemon-start` to telemetry
- Output: "Daemon activated. Budget: ${budget}. Use `/daemon status` to check progress."
4. If **no**: continue to Step 3.
**Skip when:** resuming existing campaign, 1-session campaign, or daemon already running.
### Step 3: EXECUTE PHASES
For each phase:
1. **Direction check**: Is this phase still aligned with the campaign goal?
1.5. **Create phase checkpoint**: `git stash push --include-untracked -m "citadel-checkpoint-{campaign-slug}-phase-{N}"`. Capture the stash ref and write to campaign Continuation State: `checkpoint-phase-N: stash@{0}`. If `git stash` fails: log `checkpoint-phase-N: none` and continue. Never block on checkpoint failure.
2. **Log delegation start**: `node .citadel/scripts/telemetry-log.cjs --event agent-start --agent {delegate-name} --session {campaign-slug}`
3. **Delegate**: Spawn a sub-agent with full context injection:
- CLAUDE.md content and `.claude/agent-context/rules-summary.md`
- **Map slice** (if `.planning/map/index.json` exists): run `node scripts/map-index.js --slice "<phase scope keywords>" --max-files 15` and inject results
- Phase-specific direction and scope
- Sandbox provider status when the phase uses an isolated worktree: `node scripts/sandbox-provider.js status --provider worktree --worktree {path}`
- Relevant decisions from the campaign's Decision Log
4. **Verify end conditions** before marking a phase complete:
- `file_exists`: check file exists on disk
- `command_passes`: run command, verify exit code 0
- `metric_threshold`: run command, parse output, compare to threshold
- `visual_verify`: invoke /live-preview on the specified route
- `manual`: log to Review Queue, don't block
- If ANY non-manual condition fails: phase is NOT complete. Fix what's failing.
- Log which conditions passed/failed in the Feature Ledger
4.25. **Validate exit evidence** if the campaign has an `## Exit Evidence` table: run `node scripts/evidence-validate.js --file .planning/campaigns/{slug}.md --target phase:{N}`.
- Passes: continue. Fails with retries remaining: run again with `--write-repair`, keep the phase active, perform the repair task. Fails with no retries remaining: block advancement or mark the phase `partial`; never mark complete from prose alone.
- For package/review phases, run `node scripts/package-delivery.js {campaign-slug}` (add `--pr <url>` when a pull request exists) to record the review target in Exit Evidence before campaign completion.
4.5. **Validate handoff** — spawn a Phase Validator (subagent_type `citadel:phase-validator`, Haiku, read-only, effort: low) with the campaign slug, phase number and title, the exit conditions from the Phase End Conditions table, and the sub-agent's full HANDOFF (invocation template: docs/CAMPAIGNS.md#phase-validation). Parse the validator's JSON response:
- **`verdict: "pass"`**: proceed to step 5.
- **`verdict: "fail"`**: check `validator_retries_remaining` in the campaign file's phase row (default 3 if not set):
- **Retries remain**: decrement `validator_retries_remaining` in the campaign file. Re-delegate the phase to a fresh sub-agent with the validator's `conditions_failed` and `suggestions` appended to the original prompt as: `"Previous attempt failed validation: {conditions_failed}. Fix: {suggestions}."` Return to step 3.
- **Retries exhausted (0)**: log `validator_halt: phase {N} failed validation after 3 retries — {conditions_failed}` to the campaign Decision Log. Mark phase `partial`. Advance to the next phase.
- **Validator timeout**: if the validator does not return within 3 minutes, treat the result as `verdict: "pass"` with `warnings: ["validator timed out"]` and log the timeout. Never let validation block the campaign indefinitely.
5. **Review**: Read the sub-agent's HANDOFF. Did it accomplish the phase goal?
- If HANDOFF present but phase goal NOT met: re-delegate the phase to a fresh sub-agent with clarified success criteria. If second attempt also fails goal: mark phase as `partial`, log the gap, continue to next phase.
5.5. **Log delegation result**: `node .citadel/scripts/telemetry-log.cjs --event agent-complete --agent {delegate-name} --session {campaign-slug} --status {success|partial|failed}`
6. **Record**: Update the campaign file:
- Mark phase status using `updatePhaseStatus` from `core/campaigns/update-campaign` via `node -e` (snippet: docs/CAMPAIGNS.md#updating-phase-status). Valid values: `pending`, `in-progress`, `design-complete`, `complete`, `partial`, `failed`, `skipped`
- Add entries to Feature Ledger; log decisions to Decision Log
7. **Self-correct**: Run applicable checks from Step 4: quality spot-check (every phase), direction alignment (every 2nd phase), regression guard and anti-pattern scan (build phases only).
### Step 4: SELF-CORRECTION (Mandatory)
#### Direction Alignment Check (every 2 phases)
1. Re-read the campaign's original Direction field
2. Compare to the Feature Ledger (what was actually built)
3. If aligned: log "Direction check: aligned" in Active Context, continue
4. If drifted: stop current phase. Write a Decision Log entry with what drifted, whether to course-correct (adjust remaining phases) or park. If course-correcting: rewrite remaining phases to re-align.
#### Quality Spot-Check (every phase)
1. Read the most significant output of the phase
2. Check: TypeScript strict mode? Types correct? Clean structure? Follows CLAUDE.md conventions?
3. If view files (.tsx, .jsx, .vue, .svelte, .html) were modified: invoke /live-preview
4. If below bar: add a remediation task before marking complete
#### Regression Guard (every build phase)
1. Run typecheck via `node scripts/run-with-timeout.js 300`
2. Compare error count to campaign baseline
3. Escalation: 1-2 new errors — fix before continuing; 3-4 — log warning, attempt fixes, continue if resolved; 5+ — PARK the campaign
4. If test suite exists: run it. New failures trigger the same escalation.
#### Anti-Pattern Scan (every build phase)From mayankjain1815-commits/CITADEL, MIT.
More from mayankjain1815-commits/CITADEL
- 0.519score
daemon
mayankjain1815-commits
Continuous autonomous operation mode.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
grill
mayankjain1815-commits
Relentless one-question-at-a-time interview that sharpens a vague plan or design into shared understanding before any build.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
decision-map
mayankjain1815-commits
Turn a loose idea into a git-tracked, session-resumable map of typed investigation tickets, then drive them to resolution one at a time.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
evolve
mayankjain1815-commits
Research-driven multi-cycle improvement director.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
create-skill
mayankjain1815-commits
Creates new skills from the user's repeating patterns.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
fleet
mayankjain1815-commits
Parallel campaign orchestrator.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
design
mayankjain1815-commits
Generates and maintains a design manifest for visual consistency.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
do
mayankjain1815-commits
Unified router that auto-routes user intent to the right orchestrator or skill.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
doc-gen
mayankjain1815-commits
Documentation generator with three modes: function-level (JSDoc/docstrings), module-level (directory READMEs), and API reference (endpoints/exports).
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
experiment
mayankjain1815-commits
Automated optimization loop with scalar fitness function.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
architect
mayankjain1815-commits
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can…
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
ascii-diagram
mayankjain1815-commits
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow.
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 11, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mayankjain1815-commits
- 0.519score
evolve
mayankjain1815-commits
Research-driven multi-cycle improvement director.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
fleet
mayankjain1815-commits
Parallel campaign orchestrator.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
daemon
mayankjain1815-commits
Continuous autonomous operation mode.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
decision-map
mayankjain1815-commits
Turn a loose idea into a git-tracked, session-resumable map of typed investigation tickets, then drive them to resolution one at a time.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
create-skill
mayankjain1815-commits
Creates new skills from the user's repeating patterns.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
grill
mayankjain1815-commits
Relentless one-question-at-a-time interview that sharpens a vague plan or design into shared understanding before any build.
SkillCFreshness: C★ 4Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get archon running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
archon skill. Agent Mart. https://agentmart.dev/skills/mayankjain1815-commits-archon (last updated 2026-10-24)