By engsimsoft
Universal Claude Code methodology + memory + lifecycle for long-running projects (100+ TZ, 500+ sessions, 1-2 year horizon). Anthropic-prescribed stack: disciplined CLAUDE.md, Memory Bank, ADR enforcement, Serena LSP, deterministic hooks. No vector RAG, no cloud memory by default — auditable markdown + structural hook protection.
Create a new ADR (Architecture Decision Record) from a one-line input. Owner says "use FastAPI instead of Flask because async support" — this command generates docs/agent/decisions/ADR-NNNN-<slug>.md in MADR format. INDEX.md auto-regenerates via post-tool-edit hook.
Formally close a series after DoD is met. Verifies all TZ closed, full test suite passes, manual smoke owner OK, then archives series to specs/_archive/.
Finalize a TZ — verify validation, run docs-sync, process FINDINGS, archive folder, create one commit. Use this at end of every TZ.
Manually trigger pre-compaction handoff before context degrades. Use when sensing context drift, read-twice signal, or session running long. Saves checkpoint to .claude-data/checkpoint.md.
Bootstrap a new project with the agent-methodology structure. Creates docs/agent/, specs/, CLAUDE.md, .claude-data/, invariants.md from plugin templates. Run this once per fresh project.
Generate a concise CHANGELOG.md entry from git diff + commit messages. Compresses a TZ's worth of changes into a structured entry without narrative bloat. Use when running /close-tz or docs-sync skill.
Audit a module or feature in the codebase. Returns a 200-word summary of structure, dependencies, smells, and ADR compliance — without polluting main conversation context. Use for "how is X currently implemented?" or "find all call sites of Y" or "is the auth module aligned with ADR-0023?". Read-only — no edits, no commits.
Generate SPEC.md and ROADMAP.md for a new TZ from owner's outline. Owner provides a one-paragraph description of what they want, agent produces structured SPEC + ROADMAP per methodology format. Use when starting any non-trivial feature TZ.
Use this skill at the end of any TZ closure or series closure to archive completed work and keep specs/ + docs/agent/ from bloating over a 1-2 year project. Trigger automatically when closing series, archiving 30+-day-old TZs, or when changelog exceeds 1000 lines. Critical for projects with 100+ TZ over years.
Use this skill ALWAYS whenever there is a reproducible bug, failing test, runtime error, regression, or any defect report. Trigger this skill EVEN if the user just says "X is broken" or "fix Y" without describing the process. Use it for ANY defect work — never just patch and close.
Use this skill ALWAYS at the end of ANY code-changing task to synchronize project memory with reality. Trigger this skill after closing any TZ, after fixing any bug, after completing any refactor, after adding any feature, after creating any ADR — even if the user did not explicitly request docs update. This skill is MANDATORY before declaring a task complete.
Use this skill ALWAYS whenever adding new functionality, new endpoint, new component, new agent, or extending existing behavior in a non-trivial way. Trigger this skill at the start of ANY feature work even if the user just describes "add X" or "implement Y" without explicitly mentioning a process.
Use this skill ALWAYS whenever the task touches an external technology (SDK, API, library, framework, database, MCP server, AI provider) OR any knowledge after the model's cutoff date. Trigger this skill EVEN for technologies you think you know — your training data may be outdated by months. This skill is MANDATORY before writing any code that uses external dependencies.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
strict_modeWhen true (default), Stop hook blocks turns on missing ADR and PreToolUse blocks dangerous operations. Set to false to temporarily disable aggressive blocks if they interfere with emergency work. Reset to true afterward.
${user_config.strict_mode}github_tokenRequired for GitHub MCP (issues, PRs, code search). Classic PAT with 'repo' scope, or fine-grained PAT with Contents:Read, Issues:Read, Pull requests:Read, Metadata:Read.
${user_config.github_token}context7_api_keyGet free key at https://context7.com/dashboard. Free tier rate-limited to 60 req/hr. Used for fetching current SDK/library docs (R2 enforcement).
${user_config.context7_api_key}External network access
External network access
Connects to servers outside your machine
Connects to servers outside your machine
Requires secrets
Needs API keys or credentials to function
Requires secrets
Needs API keys or credentials to function
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
Claude Code plugin marketplace bundling a methodology + memory + lifecycle stack for long-running projects (100+ TZ, 500+ sessions, 1-2 year horizon).
Built from real lessons of a failed 50K-line project (Simply v1) and verified against 2025-2026 best practices: Anthropic's effective-context-engineering, Claude Code Plugins/Hooks/Skills, Cline Memory Bank pattern, Serena LSP. No vector RAG, no cloud-graph memory by default — auditable markdown + deterministic hook protection.
Long-running AI-agent projects fail not from missing features but from context degradation over time. By session 200, the agent forgets architectural decisions, re-reads the same files, accepts stale HANDOFF as truth, and proposes opposite of what was decided in March. Without deterministic protection, this is inevitable.
This plugin enforces 16 specific failure modes through deterministic hooks that don't rely on agent discipline.
In any new (or existing) project:
/plugin marketplace add github:engsimsoft/universal-agent-starter
/plugin install agent-methodology@universal-agent-starter
After install, bootstrap the project structure (docs/agent/, specs/, CLAUDE.md, ...) by running:
/init-project
Note on the
Setuphook: Per Claude Code docs, theSetuphook event fires only onclaude --init-only, or--init/--maintenancein-p(print) mode. It does not fire on a normal/plugin installor session start, so if you want auto-bootstrap from CI, runclaude --init-onlyonce after install. For interactive use,/init-projectis the canonical bootstrap command.
9 hook bindings (deterministic protection — see plugins/agent-methodology/hooks/):
Setup — bootstraps docs/agent/, specs/, CLAUDE.md when triggered via claude --init-only (CI-friendly)SessionStart — loads real git diff + recent ADRs + checkpoint, defends FM-03 (hypothesis before facts)PreCompact — saves invariants + scope + next-step before auto-compaction loses them, defends FM-08PostCompact — cleans up checkpoint-history/ files older than 7 daysUserPromptSubmit — keyword-driven skill activation, decision-phrase ADR injection, tech-detection R2 reminder, defends FM-06/FM-09/FM-15Stop — R4 question-mark check, blocks turn if decision made without ADR reference, scope-creep detector, defends FM-04/FM-05/FM-09 (with strict_mode escape hatch)PreToolUse(Bash:alembic *) — blocks prod migrations without MIGRATION_APPROVED=YES, stops uvicorn before alembicPreToolUse(Bash:curl *) — blocks paid-API curls without justification (Anthropic / OpenAI / xAI / Moonshot / Jina / Voyage / Cohere / Gemini / Groq / Together / DeepSeek / Mistral / Perplexity / Fireworks)PreToolUse(Edit|Write|MultiEdit) — enforces CLAUDE.md ≤80 lines, blocks edits to invariant pathsPostToolUse(Edit|Write|MultiEdit) — auto runs mypy/ruff, regenerates ADR INDEX, surfaces lint errorsPlus a lifecycle-cron.sh script (not a hook event itself) invoked once per day from SessionStart for ТЗ archival, changelog quartering, and series-limit warnings.
7 skills (auto-activated by description, manually invokable as /agent-methodology:<name>): bugfix, refactor, feature-delivery, research-only, official-docs-first, docs-sync, archive-cycle.
9 slash commands: /init-project, /start-series, /start-tz, /close-tz, /close-series, /handoff-now, /status, /pre-flight, /adr.
3 subagents (isolated context): code-auditor, doc-writer, changelog-writer.
3 MCP servers bundled:
User must have these installed BEFORE plugin works:
uv for Serena (curl -LsSf https://astral.sh/uv/install.sh | sh)npx)After plugin install, plugin will prompt for:
context7_api_key — optional; free tier OK, rate-limit higher with keygithub_token — optional; PAT with repo scope (Classic) or fine-grained PAT with Contents/Issues/Pull-requests/Metadata read accessstrict_mode — boolean, default true. When false, Stop and PreToolUse hooks downgrade hard blocks to reminders (escape hatch for emergency work)This stack is built on what 2025-2026 evidence shows actually works:
npx claudepluginhub engsimsoft/universal-agent-starter --plugin agent-methodologyUpstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Comprehensive startup business analysis with market sizing (TAM/SAM/SOM), financial modeling, team planning, and strategic research
v9.44.1 — Patch release for Gemini environment/version detection and qwen auth gating. Run /octo:setup.
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
Complete creative writing suite with 10 specialized agents covering the full writing process: research gathering, character development, story architecture, world-building, dialogue coaching, editing/review, outlining, content strategy, believability auditing, and prose style/voice analysis. Includes genre-specific guides, templates, and quality checklists.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications