claude-plugin CLAUDE.md

Project instructions for a Claude Code team-management plugin that uses DAIC: Discussion, Alignment, Implementation, and Check. They describe its workflow, persistent task context, agents, and enforcement hooks.

In plain words
What is it for?
Use them when working on the plugin or following its structured pair-programming workflow for discussion, implementation, and review.
Why use it?
They keep coding work aligned before edits begin and preserve task context across sessions.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/teammanagementplugin/claude-plugin/claude-md
Clone the repo
git clone --depth 1 https://github.com/TeamManagementPlugin/claude-plugin
Per session 12,359 This file is loaded in full into every session.
When invoked 12,359 The same file — it is already loaded in full.
Security scan A 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.12359 $0.12359
Opus 5 $0.06180 $0.06180
Sonnet 5 $0.02472 $0.02472
Haiku 4.5 $0.01236 $0.01236

Measured 2d ago against content hash bf9bed6c246d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-plugin CLAUDE.md scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Pass-through wrapper at `plugin/agents/agy-cli.md`. Invokes `agy --add-dir "$PWD" --dangerously-skip-permissions --print-timeout 300s -p "$PROMPT"` — **NO `--sandbox`** (on macOS the sandbox blocks git's `$TMPDIR`/xcru

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- `test_command` - **Optional** test-runner command for the `verify_tests_pass` gate on the `code-review` step (null / omitted / empty string → gate skipped gracefully). Must be exactly, or start with (followed by a spac
CLAUDE.md · 421 lines

How it starts

The opening of the file, as written. The whole thing — 421 lines — stays where its author put it; the contents beside it link to each section on GitHub.

team-management CLAUDE.md

Purpose

Complete team-management framework that enforces Discussion-Alignment-Implementation-Check (DAIC) methodology for AI pair programming workflows.

Narrative Summary

The team-management package transforms Claude Code from a basic AI coding assistant into a sophisticated workflow management system. It enforces structured collaboration patterns where Claude must discuss approaches before implementing code, maintains persistent task context across sessions, and provides specialized agents for complex operations.

The core innovation is the DAIC (Discussion-Alignment-Implementation-Check) enforcement through Python hooks that cannot be bypassed. DAIC mode is driven by the JSON protocol engine, which sets discussion, implementation, or documentation mode automatically per workflow step; it can also be switched manually via the daic_mode_switch_* MCP tools. In discussion mode the hooks block edit tools and require alignment before implementation proceeds. This prevents the common AI coding problem of immediate over-implementation without alignment.

The framework includes persistent task management with git branch enforcement, context preservation through session restarts, specialized subagents for heavy operations, and automatic context compaction when approaching token limits.

Key Files

Plugin Runtime & Configuration (the pip/npm installer was retired in #7)

  • plugin/.claude-plugin/plugin.json - Plugin manifest wiring hooks / MCP server / commands / agents (version in sync with marketplace.json); no longer declares userConfig — provider tokens moved to a per-project, user-authored .claude/state/provider-tokens.json (the OS-keychain model was retired because the keychain is global-per-plugin-per-user, so two projects could not use different tokens). Marketplace descriptor: .claude-plugin/marketplace.json./plugin
  • plugin/hooks/shared_state.py - Three-root path model (get_project_root() / get_plugin_root() / get_plugin_data()), shared state helpers, the file → config.json resolve_provider_token (reads the per-project .claude/state/provider-tokens.json; config.json is a legacy fallback), and ensure_provider_tokens_file (create-if-absent 0600 seeder for that file)
  • plugin/hooks/_shim.py - Stdlib launcher shim every hook runs through (python3 ${CLAUDE_PLUGIN_ROOT}/hooks/_shim.py <hook>); selects the venv python if built, else system python
  • plugin/hooks/hooks.json - Hook event → shim-command registrations (merge-friendly; the host merges them with the project's .claude/settings.json)
  • plugin/mcp/bootstrap_mcp.py - MCP cold-start: builds/validates a venv under ${CLAUDE_PLUGIN_DATA} keyed to the requirements.lock hash, then os.execvs the venv python running server.py
  • plugin/hooks/boot_detector.py - Guards against a legacy pip install coexisting with the plugin (SessionStart advisory + PreToolUse hard block)
  • plugin/hooks/hook_utils.py - Shared hook helpers incl. module-level normalize_command() (hook-command canonicalisation; consumed by boot_detector.py)
  • plugin/commands/config.md / plugin/commands/init.md - In-Claude-Code configuration slash commands that replaced the old install.py prompt flow
  • plugin/mcp/tools/config.py - config_get / config_update MCP tools backing the config flow. config_get also returns a schema catalog ({key, type, allowed?, description} per settable key, on all return paths) so the flow knows each key's exact type/enum; the _CONFIG_SCHEMA allowlist covers the full non-secret settable surface incl. code_review.enforce_warnings, notifications.*, features.icon_style (m-fix-config-schema-exposure)
  • plugin/hooks/config_intent_gate.py - Deterministic intent-gate hook routing config edits through the sanctioned flow
  • plugin/agents/codex-cli.md - Wrapper agent that runs codex review --uncommitted / codex exec -s read-only in a sandboxed Task
  • plugin/agents/agy-cli.md - Wrapper agent that runs agy --add-dir "$PWD" --dangerously-skip-permissions --print-timeout 300s -p ... (NO --sandbox) in a Task, contained by a project-local .agents/hooks.json read-only deny-gate
  • plugin/templates/agy-readonly-gate.py - Stdlib PreToolUse deny-gate deployed into a project's .agents/hooks.json (named hook team-management-readonly-gate); hard-denys every agy tool call outside a read-only allowlist. Deployed by shared_state.ensure_agy_readonly_gate_deployed (merge-aware, refresh-on-change) when agy is enabled; the deploy also blanket-gitignores .agents/ in the host project (ensure_agents_dir_gitignored, mirroring .claude/)

Read the full file on GitHub · 421 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 421 lines · 12,359 tokens per session scan A bf9bed6c246d

Subscribe to this mod's changes

claude-plugin CLAUDE.md is an instructions file published in the GitHub repository TeamManagementPlugin/claude-plugin (4 stars, last pushed 27d ago), licensed MIT. It adds 12,359 tokens to every session, about $0.0618 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

claude-prompts-mcp CLAUDE.md

Claude Code instructions for minipuft/claude-prompts-mcp, covering claude prompts mcp -- operator handbook, core principles, node.js support boundaries, validation gates (one contract, impact-aware subsets) and fleet standards upstream (minipuft/repository-standards).

minipuft/claude-prompts-mcp · 8,030 tokens

remnote-mcp-server AGENTS.md

Instructions for robert7/remnote-mcp-server, covering agents.md, repo role, companion repos (sibling dirs), contract map (current) and external mcp tool surface (17).

robert7/remnote-mcp-server · 2,146 tokens

asap-protocol AGENTS.md

AGENTS.md instructions for asap-protocol/asap-protocol, covering agents.md, project context, quick start, agent guidance (rules vs skills) and knowledge map.

asap-protocol/asap-protocol · 1,995 tokens

open-tag AGENTS.md

Instructions for fancyboi999/open-tag, covering open-tag — guide for ai coding agents, this file is a map, not a manual, conventions, parallel development (worktrees) and isolated dev e2e (on demand).

fancyboi999/open-tag · 3,771 tokens

slipway AGENTS.md

Instructions for signalridge/slipway, covering slipway agent principles, user owns the process, investigate before clarifying, report, do not certify and maintain the whole surface.

signalridge/slipway · 470 tokens

harness-anchor CLAUDE.md

Instructions for Redtropig/harness-anchor, covering harness-anchor — contributor & ai collaborator guidelines, if you are an ai agent editing this plugin, design invariants (do not break), shell hazards no tool in this repo catches and authoring a new skill (when explicitly asked).

Redtropig/harness-anchor · 2,570 tokens