Want to know what will actually drive more revenue? OSPRY is the insight engine built for exactly that. Check it out at ospry.ai.
Get the Git life. The planning blueprint and the cross-harness AI tooling for a dev-environment system that will keep your GitHub folder healthy, standardized, and ready to vibe.
That Git Life is a Legion Code Inc. project, and right now it is a blueprint, not a binary. There is no package to install yet. What lives in this repo today is two things: the plan for the product, and the AI tooling that will build it. The plan is a library/ of PRDs and knowledge docs that spec exactly what gets built. The tooling is a cross-harness army of agents and skills (for Cursor, Claude Code, and Claude Cowork) that do the building.
The product these plans describe will be a globally-installed npm package: a single-command installer for Windows, macOS, and Linux, an always-on local service on http://localhost:3050, and a React web UI that standardizes new repos, scans existing ones for drift, manages your GitHub root, and syncs skills and agents for Cursor or Claude Code. That is the destination. This repo is how we get there.
This repo is the planning and source of truth for the product. Cursor (or another AI coding agent) reads the docs here and builds the product against them. Nothing here is shipping code yet. This is the blueprint.
| Where | What's in it |
|---|---|
library/ |
Library Schema v2 scaffold. Lifecycle folder structure (knowledge, requirements, issues, notes) with seeded READMEs. |
.cursor/ |
Cursor agents, skills, and rules. The source of truth for the asset system. |
.claude/ |
The same agents and skills, in the structure Claude Code consumes. |
.cowork/ |
Every skill packaged as an installable .skill for Claude Cowork. |
AGENTS.md · SKILLS.md · HOOKS.md · RULES.md |
Deep explainers for each asset type and how they work across harnesses. |
README.md |
This file. |
LICENSE.md |
License. |
The work lives in library/. The agents read the PRDs there and build the product against them.
This repo ships a full army of AI assets that work across Cursor, Claude Code, and Claude Cowork. There are four kinds. Each has a deep-dive doc.
Focused AI personas, one per domain, with their own instructions and guardrails. A primary orchestrator routes each request to the specialist that owns it. In this repo they are called Angels, and each one is paired with a skill it reads from. They live in .cursor/agents/ and .claude/agents/.
Packaged, reusable expertise an agent loads on demand: instructions, guides, templates, and examples behind a SKILL.md. In this repo they are called Weapons. They are the most portable asset, working in all three harnesses, and ship for Cowork as one-click .skill packages.
Scripts that fire automatically on session events (before or after a tool runs, on prompt submit, on session start). They make "always do X" a guarantee instead of a hope. This repo currently ships none; the doc explains the model and how to add them per harness.
Always-on guidance that constrains every agent at all times: house style, safety constraints, and workflow gates. This repo carries four, including a strict no-em-dashes rule and a plan-construction protocol.
| Asset | Cursor | Claude Code | Claude Cowork |
|---|---|---|---|
| Agents | .cursor/agents/*.md |
.claude/agents/*.md |
runs on the Agent SDK; skills are the portable unit |
| Skills | .cursor/skills/<name>/ |
.claude/skills/<name>/ |
.cowork/skills/<name>.skill (one-click install) |
| Hooks | .cursor/hooks.json |
.claude/settings.json |
not user-configurable |
| Rules | .cursor/rules/*.mdc |
CLAUDE.md |
CLAUDE.md + project instructions |
Skills port one-to-one across all three. Agents share a format across Cursor and Claude Code. Hooks and rules use different formats per harness, so they are translated rather than copied. The Cowork skill copies have their angle brackets swapped for curly braces so they survive import (see SKILLS.md).
Every capability in the army, with its description and a direct link for each harness. Where a row shows an Agent and a Skill, the Angel is the persona and the Weapon is the arsenal it wields. Standalone skills (the factory line and orchestrators) have no paired Angel.
Browse all 85 capabilities
| Capability | What it does | Cursor | Claude Code | Cowork |
|---|---|---|---|---|
| Adr Writing | Architecture Decision Records specialist , authors, reviews, and governs ADRs in Nygard format (Context / Decision / Consequences / Alternatives Considered), MADR... | Agent · Skill | Agent · Skill | Skill |
| Affiliate Referral Program | Affiliate and referral program specialist for SaaS products -- platform selection (Rewardful, FirstPromoter, Tolt, PartnerStack, Impact, Refersion), the affiliate... | Agent · Skill | Agent · Skill | Skill |
| Agile Scrum | Scrum methodology specialist , audits whether teams are actually practising Scrum, coaches Sprint Planning / Daily Scrum / Sprint Review / Retrospective / Backlog... | Agent · Skill | Agent · Skill | Skill |
| Ai Coding Tools | The vibe-coder's AI coding tool advisor , recommends, compares, and configures Cursor, Claude Code, Aider, Cline, Windsurf (Cascade), Continue.dev, Replit Agent,... | Agent · Skill | Agent · Skill | Skill |
| Ai Docs | API documentation research notes. Stub skill, no SKILL.md yet. | Skill | Skill | Skill |
| Ai Tools Platform | The vibe coder's AI toolbox specialist , AI gateways (Portkey, OpenRouter), cloud providers (AWS Bedrock, Vertex AI, Azure OpenAI), frontier model selection (Clau... | Agent · Skill | Agent · Skill | Skill |
| Alt Ads Platforms | Paid acquisition specialist for alternative ad platforms beyond Meta and Google Search , LinkedIn Ads (B2B Lead Gen Forms, Thought Leader Ads, ABM), TikTok Ads (S... | Agent · Skill | Agent · Skill | Skill |
| Angel Creator | Phase 3 of the Legion AI Tools Factory pipeline. | Skill | Skill | Skill |
| Api Docs | API documentation authority , Swagger UI / Redoc / Scalar / Mintlify / Stoplight / Bump.sh tool selection, OpenAPI spec enrichment with JSON request + response ex... | Agent · Skill | Agent · Skill | Skill |
| App Store Submission | App store publication specialist for iOS (App Store Connect + TestFlight) and Android (Google Play Console). | Agent · Skill | Agent · Skill | Skill |
| Asset | Single owner of the Universal Asset Registry , the platform-owned catalog of every Feature, Page, Route, Surface, Control, Display, Layout, NavEntry, DesignToken,... | Agent · Skill | Agent · Skill | Skill |
| Auth | End-to-end authentication implementation specialist , provider selection (Clerk / Better Auth / Auth.js / Supabase Auth / WorkOS / Stack Auth / Kinde / Stytch), G... | Agent · Skill | Agent · Skill | Skill |
| Big Bang Space | Front-of-the-pipeline Angel for the Legion AI Tools Factory. | Agent · Skill | Agent · Skill | Skill |
| Blogging Content Strategy | Editorial blogging strategy specialist , cluster + pillar topical authority architecture, post-length decisions by search intent, title + H1 + meta description cr... | Agent · Skill | Agent · Skill | Skill |
| Branching Strategy | Branching strategy advisor for Git-based teams. | Agent · Skill | Agent · Skill | Skill |
| Changelog Release Notes | Publishes engaging public changelogs and release notes that drive user engagement. | Agent · Skill | Agent · Skill | Skill |
| Code Forensics | Conducts forensic investigations of software-development and agency-services engagements to support fee-clawback, breach-of-contract, fraud, and gross-negligence... | Agent · Skill | Agent · Skill | Skill |
| Code Review Pr | Code review culture and PR lifecycle specialist. | Agent · Skill | Agent · Skill | Skill |
| Cold Outreach | Outbound sales specialist for founders running cold email. | Agent · Skill | Agent · Skill | Skill |
| Command Center | Phase 1 of the Legion AI Tools Factory pipeline. | Skill | Skill | Skill |
| Crm Integration | CRM connectivity specialist for HubSpot, Salesforce, Pipedrive, Attio, Folk, Close, and Copper. | Agent · Skill | Agent · Skill | Skill |
| Cron Scheduling | Scheduled-job specialist for cron expression authoring and auditing, platform-specific limits (Vercel Cron, Cloudflare Cron Triggers, GitHub Actions schedule), di... | Agent · Skill | Agent · Skill | Skill |
| Csv Xlsx Import Export | Implements and audits the "upload your spreadsheet" feature surface for React/Next.js products. | Agent · Skill | Agent · Skill | Skill |
| Cursor Ide | Cursor IDE platform specialist , project rules (.cursorrules migration, .cursor/rules/*.mdc authoring), MCP server registration and tool authoring, @cursor/sdk AP... | Agent · Skill | Agent · Skill | Skill |
| Customer Support Tooling | Support stack specialist for SaaS products. | Agent · Skill | Agent · Skill | Skill |
| Dark Mode Theming | Audits and implements the full dark-mode theming surface for React/Next.js applications. | Agent · Skill | Agent · Skill | Skill |
| Db | PostgreSQL data architecture specialist , schema design, indexing strategy, zero-downtime migrations, ORM choice (Drizzle / Prisma / raw SQL), and serverless DB p... | Agent · Skill | Agent · Skill | Skill |
| Dependency Audit | Supply-chain security specialist for open-source dependency hygiene. | Agent · Skill | Agent · Skill | Skill |
| Design System | Bootstraps complete design systems from scratch for any product , master design brief, tokens CSS, utility layer CSS, per-component specs, per-screen specs, stati... | Agent · Skill | Agent · Skill | Skill |
| Devops | Container build + CI/CD pipeline specialist for Node / Next.js / TypeScript stacks , Dockerfile hygiene (multi-stage, BuildKit secrets + cache mounts, non-root, H... | Agent · Skill | Agent · Skill | Skill |
| Discord Bot | Discord bot and application specialist. | Agent · Skill | Agent · Skill | Skill |
| Discovery Research | Continuous product discovery coach , Teresa Torres interview cadence, Opportunity Solution Trees (OST), Jobs-to-be-Done (JTBD) interviews, assumption mapping, and... | Agent · Skill | Agent · Skill | Skill |
| Docs Site | Documentation-site infrastructure specialist. | Agent · Skill | Agent · Skill | Skill |
| Estimation | Software estimation and forecasting specialist , relative-sizing frameworks (Fibonacci story points, T-shirt sizing, Planning Poker), the NoEstimates movement and... | Agent · Skill | Agent · Skill | Skill |
| Font Loading | Production-focused web font loading specialist. | Agent · Skill | Agent · Skill | Skill |
| Git | Git mastery specialist , interactive rebase (squash, fixup, reword, autosquash), conflict resolution (rerere, mergetool, diff3), history rewriting (git filter-rep... | Agent · Skill | Agent · Skill | Skill |
| Github Repo Health | Repository hygiene auditor for GitHub repositories. | Agent · Skill | Agent · Skill | Skill |
| God | Routing skill for the Cursor IDE Army. | Skill | Skill | Skill |
| God Registrar | Phase 4 of the Legion AI Tools Factory pipeline. | Skill | Skill | Skill |
| Gods Hand | Pipeline controller and orchestration Angel for the Legion AI Tools Factory. | Agent · Skill | Agent · Skill | Skill |
| Hiring Ats | Applicant Tracking Systems authority for recruiting-tech stacks. | Agent · Skill | Agent · Skill | Skill |
| Hr Payroll | HR infrastructure and payroll decision specialist for software startups , domestic payroll platform selection (Gusto, Rippling, Justworks), international contract... | Agent · Skill | Agent · Skill | Skill |
| Http Rest Fundamentals | HTTP and REST protocol authority. | Agent · Skill | Agent · Skill | Skill |
| Icon System | Icon-system specialist for React/Next.js applications. | Agent · Skill | Agent · Skill | Skill |
| Image Optimization | Image optimization specialist for React/Next.js and HTML contexts. | Agent · Skill | Agent · Skill | Skill |
| Incorporation Startup Stack | Company formation advisor for software startup founders. | Agent · Skill | Agent · Skill | Skill |
| Investor Cap Table | Cap-table management and fundraising paperwork specialist for startup founders. | Agent · Skill | Agent · Skill | Skill |
| Kanban Flow | Kanban method specialist , WIP limit design and enforcement, flow-metric calculation (cycle time, lead time, throughput, flow efficiency), Little's Law diagnostic... | Agent · Skill | Agent · Skill | Skill |
| Knowledge | Authors narrative knowledge documentation for any repository , the human-readable, technically deep domain docs under library/knowledge/private/<domain>/. |
Agent · Skill | Agent · Skill | Skill |
| Knowledge Base Help Center | Customer-facing knowledge base specialist , platform selection (Intercom Articles, Help Scout Docs, ReadMe.com, Document360, HelpJuice, Zendesk Guide), search-fir... | Agent · Skill | Agent · Skill | Skill |
| Legal Docs | SaaS legal documentation specialist for Terms of Service, Privacy Policy, DPA, MSA, and Cookie Notice. | Agent · Skill | Agent · Skill | Skill |
| Library | Owns the full documentation lifecycle for any repository , scaffolds the canonical library/ folder on first run, ingests GitHub issues into IRDs, generates feat... |
Agent · Skill | Agent · Skill | Skill |
| Lighthouse Pagespeed | Lighthouse + PageSpeed Insights specialist , running audits locally vs in CI (LHCI 0.15.x / GitHub Actions), interpreting all four audit categories (Performance,... | Agent · Skill | Agent · Skill | Skill |
| Live Chat Support | Customer support surface specialist , Intercom, Crisp, Plain, Pylon, Help Scout , widget integration, HMAC/JWT identity verification, conversation routing, AI def... | Agent · Skill | Agent · Skill | Skill |
| Markdown Mdx Content Pipeline | Markdown/MDX content processing specialist. | Agent · Skill | Agent · Skill | Skill |
| Mind | Cognitive-layer specialist for the deploying product , coach/agent routing, prompt cascade, RAG / GraphRAG, three-tier memory, observability, evaluation, multimod... | Agent · Skill | Agent · Skill | Skill |
| Modal Toast Dialog | Accessible overlay specialist for React. | Agent · Skill | Agent · Skill | Skill |
| Newsletter Platform | Newsletter-as-channel specialist for product builders and founders , platform selection (Beehiiv, ConvertKit/Kit, Loops, Substack, Resend Audiences, Ghost), embed... | Agent · Skill | Agent · Skill | Skill |
| Okr Goal Setting | OKR methodology specialist , writes, grades, and iterates on Objectives and Key Results. | Agent · Skill | Agent · Skill | Skill |
| Payments | Stripe (non-Connect) integration specialist , Checkout, Payment Intents, Subscriptions, Customer Portal, Invoicing, Payment Links, and webhook processing. | Agent · Skill | Agent · Skill | Skill |
| Preact | Preact 11 specialist , signals API (v2 with createModel/useModel/action), preact/compat migration from React (alias setup, known gaps, compat blockers), third-par... | Agent · Skill | Agent · Skill | Skill |
| Product Feedback Roadmap | Customer-feedback-to-roadmap loop specialist , Userback, Canny, Featurebase, Productboard, Frill, Productlane , in-app-widget vs portal vs voting-board taxonomy,... | Agent · Skill | Agent · Skill | Skill |
| Product Tour Onboarding Ui | In-app product tour and onboarding UI specialist. | Agent · Skill | Agent · Skill | Skill |
| Python | Python architecture specialist for Django + Django Ninja + FastAPI + Celery + Channels + pytest + uv codebases , enforces the canonical stack (Pydantic v2 at boun... | Agent · Skill | Agent · Skill | Skill |
| Quality | Quality-assurance reviewer that audits a completed implementation against its source plan document (a feature PRD at `library/requirements/features/feature-<###>-... | Agent · Skill | Agent · Skill | Skill |
| React | React architecture specialist for React 18/19 codebases , bulletproof-react patterns, awesome-react ecosystem, React 19 idioms (Server Components, Suspense, Actio... | Agent · Skill | Agent · Skill | Skill |
| Readme Writing | Authors, audits, and restructures README files so they convert visitors into users. | Agent · Skill | Agent · Skill | Skill |
| Retrospective | Retrospective facilitator and follow-through enforcer for engineering teams. | Agent · Skill | Agent · Skill | Skill |
| Review Funnels G2 | Review collection and online-reputation specialist for SaaS products. | Agent · Skill | Agent · Skill | Skill |
| Runbook Writing | Operational runbook authorship specialist , canonical templates (break-fix, scheduled operation, diagnostic), the no-implied-context audit protocol, exact-command... | Agent · Skill | Agent · Skill | Skill |
| Scripture Historian | Phase 1.5 of the Legion AI Tools Factory pipeline. | Agent | Agent | n/a |
| Security | Security audit and remediation specialist for React, Next.js, TypeScript, and Node.js codebases. | Agent · Skill | Agent · Skill | Skill |
| Seo Aeo | Next.js 14+ App Router SEO and Answer Engine Optimization specialist. | Agent · Skill | Agent · Skill | Skill |
| Slack App | Slack app development specialist. | Agent · Skill | Agent · Skill | Skill |
| Social Media Marketing Organic | Genuine organic social media strategy for solo developers, founders, and small product teams (up to ~10 people). | Agent · Skill | Agent · Skill | Skill |
| Status Page | Public status page specialist , platform selection (Statuspage/Atlassian, Better Stack, Instatus, Cachet OSS), component tree architecture, incident communication... | Agent · Skill | Agent · Skill | Skill |
| Technical Writing Craft | Reviews and writes technical documentation using the Diataxis framework, inverted-pyramid prose structure, code-example discipline, voice and tone consistency, an... | Agent · Skill | Agent · Skill | Skill |
| Telegram Bot | Telegram Bot specialist , Bot API (up to 10.0, May 2026 including guest mode and managed bots), grammY v1.x (TypeScript, recommended 2026 choice over abandoned Te... | Agent · Skill | Agent · Skill | Skill |
| Terminal Bash | Terminal productivity specialist for Bash/Zsh/Fish configuration, modern CLI tools (ripgrep, fd, fzf, bat, eza, zoxide), shell scripting best practices, dotfile a... | Agent · Skill | Agent · Skill | Skill |
| Thanos Gauntlet Glove | End-to-end PRD execution orchestrator. | Skill | Skill | Skill |
| Typography Font | Typography and font-loading specialist for web products , variable fonts, Google Fonts vs Fontsource vs self-host, the FOIT/FOUT/FOFT loading story, font-display... | Agent · Skill | Agent · Skill | Skill |
| Ux Ui | Enforces a product's design system from its source-of-truth folder (tokens, utilities, components, screens) and governs integration with shadcn/ui, Mantine, Lucid... | Agent · Skill | Agent · Skill | Skill |
| Weapon Forge | Phase 2 of the Legion AI Tools Factory pipeline. | Skill | Skill | Skill |
| Website | Builds production-grade SvelteKit (Svelte 5) + Payload CMS + Supabase websites end-to-end from a brief, applying a 12-phase site-template playbook (monorepo archi... | Agent · Skill | Agent · Skill | Skill |
| Wiki | Extracts code entities (functions, classes, modules, services, endpoints, env vars, config keys, data models, React components, SQL tables, queues, cron jobs, fea... | Agent · Skill | Agent · Skill | Skill |
Most projects rot because the knowledge that built them lives in someone's head, a closed Slack thread, or a commit message nobody will ever read again. The code ships, the context evaporates, and six months later you are reverse-engineering your own product to make one safe change.
This repo runs on the opposite bet. Every decision, every feature, and every fix gets written down before it ships, in a place a human or an AI agent can find it. The library/ folder is that place. Here is what goes in it and why it matters.
A knowledge base is the durable memory of your codebase. It is the set of documents that explain what your system is, how it works, why it works that way, and how to operate it, written in plain language instead of buried in implementation. Code tells you what the machine does right now. A knowledge base tells you why it does that, what it is supposed to do, and what breaks if you change it.
In this repo the knowledge base lives at library/knowledge/ and splits by audience:
library/knowledge/public/holds docs meant for end-users and customers: overviews, how-to guides, FAQs.library/knowledge/private/holds everything internal: architecture docs, engineering standards, domain-specific knowledge, ADRs, and strategy. When in doubt, a doc goes here and gets promoted to public later.
A knowledge base is not documentation for documentation's sake. It is the difference between a codebase one person can change safely and a codebase a whole team, plus a fleet of AI agents, can change safely.
Generic docs are worthless. "This is a React app" helps no one. The value is in the domain-specific knowledge: the rules, edge cases, and hard-won decisions that are true for your system and nowhere else.
Why it is worth the effort:
- Onboarding goes from weeks to days. A new engineer, contractor, or AI agent reads the domain docs and is productive immediately instead of pestering whoever has been here longest.
- You stop paying the same tax twice. Every gotcha you solve once gets written down once. Nobody rediscovers the same landmine in six months.
- AI agents become useful instead of dangerous. An agent with no context guesses. An agent with your domain knowledge in
library/knowledge/private/makes the call you would have made. The knowledge base is the brief you give the machine before you let it touch your code. - The truth has one home. When the data model, the auth flow, or the deploy process is documented in one canonical place, arguments end and work starts.
Domain knowledge is the moat. Write it down or watch it walk out the door every time someone leaves.
An ADR is an Architecture Decision Record. It is a short, dated document that captures one significant decision: the context that forced it, the decision you made, the consequences you accepted, and the alternatives you rejected. In this repo ADRs always live at library/knowledge/private/architecture/ADR-<n>-<slug>.md, numbered in sequence, and every one of them contains four sections: Context, Decision, Consequences, Alternatives Considered.
The reason ADRs matter is simple: the most expensive question in software is "why did we do it this way?" Without a record, the answer is a shrug, and a shrug gets you one of two bad outcomes. Either someone rips out a load-bearing decision because they did not understand it, or nobody dares touch anything because nobody understands any of it.
An ADR kills that problem. It freezes the reasoning at the moment you had the full picture. Later, when someone questions the choice, they do not relitigate it from zero. They read the context, see what tradeoffs were on the table, and either respect the decision or supersede it with a new ADR that says what changed. Decisions become a traceable chain instead of a pile of mysteries. You get to disagree with the past on the merits, not in the dark.
A PRD is the spec for a piece of work before it gets built. It states what you are building, why it exists, what counts as done, and what it explicitly will not do. In this repo a PRD is a folder, not a single file, and it carries real structure:
library/requirements/backlog/prd-<###>-<slug>/
prd-<###>-<slug>-index.md module overview, goals, non-goals, feature list
prd-<###><letter>-<slug>-<feature>.md one sub-PRD per discrete feature
qa/
prd-<###>-<slug>-qa.md QA report, written by the quality guardian
The index sets the module-level picture: overview, goals, non-goals, a feature table, and top-level acceptance criteria. Each sub-PRD scopes one feature with its own goals, user stories, acceptance criteria, and implementation notes. The acceptance criteria are the contract. They are checkboxes, and the work is not done until every box is checked and verified.
A PRD for everything sounds like bureaucracy. It is the opposite. It is the thing that lets you move fast without breaking the wrong stuff.
- It forces clarity before code. Most wasted engineering is building the wrong thing precisely. Writing the PRD is where you find the holes in the idea, while changes still cost a sentence instead of a sprint.
- It defines done. "Done" without acceptance criteria is an opinion. With acceptance criteria it is a fact you can verify. No more shipping something that "mostly works."
- It is the only reliable brief for an AI agent. This is the part that makes the whole system run. An AI agent cannot read your mind, but it can read a PRD. A tight PRD with explicit acceptance criteria turns an agent from a liability into a force multiplier, because the agent has an unambiguous target and a checklist it must satisfy. No PRD means the agent guesses, and a guessing agent ships confident garbage.
- It creates a paper trail. Every feature traces back to a written intent. When you ask "why does this exist," there is an answer with a date on it.
- It scales past you. One person can hold a small project in their head. The moment a second human or a single agent joins, the head stops scaling and the document starts.
PRDs for features and modules. IRDs for issues and fixes (an Issue Resolution Document, numbered to its GitHub issue, living under library/issues/). Knowledge docs for how it all fits together. ADRs for the decisions that shaped it. That is the full record, and the record is what lets both humans and agents work on this codebase without fear.
Follow the knowledge base, ADR, and PRD discipline and here is what you get:
- A codebase any new teammate or agent can understand without a guided tour.
- Decisions you can defend, revisit, and supersede on purpose instead of by accident.
- Features that ship against a verifiable definition of done, not a vibe.
- AI agents that build the right thing because they were handed the right brief.
- A system where the work outlives the person who did it.
The cost is writing things down. The return is a codebase that does not punish you for coming back to it.
These are the start-to-finish workflows. Each one runs through the bundled agents and skills. You drive them with plain-language commands. The agent does the filing, naming, and numbering by the rules baked into the skills.
- Scaffold the structure. Command the library-guardian agent:
initialize library(or "set up docs"). It runs the standardizer, which builds the full schema v2 tree and seeds every folder with aREADME.mdthat documents that folder's rules. Do not hand-create folders. Let the script own the structure. - Confirm the scaffold is clean. The agent verifies the standardizer reports "Already up to date" on a dry run and that the docs sync status is current. You now have
library/knowledge/{public,private},library/requirements/{backlog,in-work,completed,reports},library/issues/{backlog,in-work,completed}, andlibrary/notes/. - Decide audience for your first doc. Public for customers, private for the team and agents. Unsure means private. You can promote later.
- Pick or create a domain folder. Inside
public/orprivate/, choose the subdomain (overview/,guides/,faqs/for public;architecture/,standards/, or a domain likeai/,auth/,data/,frontend/,security/for private). Create the folder if it does not exist. - Write the doc. Name it lowercase kebab-case, 60 characters or fewer,
.md. Open with the standard header (title, category, version, date, status, one-sentence description, related links). Write the domain-specific truth, not generic filler. - Cross-link it. Link the new doc from any related PRD, IRD, or knowledge doc so it is discoverable.
- Record decisions as ADRs. For any significant architectural choice, command the agent to write an ADR. It lands at
library/knowledge/private/architecture/ADR-<n>-<slug>.md, numbered max-plus-one, with Context, Decision, Consequences, and Alternatives Considered.
Use this when code already exists but no PRD was ever written for it. You are documenting what was built so the requirements record stops lying by omission.
- Point the agent at the code. Command:
backwards-PRD this module(or "retroactively document this feature"). Name the module or path. - The agent scans the source. It reads the actual implementation with Grep and Read and cites real files and line numbers. It documents what the code does, not what someone once hoped it would do.
- It assigns the next PRD number. Same rule as a forward PRD: list every
prd-*folder acrossbacklog/,in-work/, andcompleted/, take the max and add one. - It writes the index, marked retroactive. The header status is "Shipped" with a "Retroactive: Yes" note. The body captures the real APIs, data models, and the key decisions that would otherwise be lost.
- It cross-links. Related knowledge docs, ADRs, and any issues the scan surfaced get linked in.
- It files by lifecycle. A backwards-PRD is created in
backlog/. If the code is fully shipped and verified, the agent moves the whole folder straight tocompleted/.
Repeat module by module until your shipped code has a paper trail that matches reality.
For a feature or module (PRD):
- Command the agent:
write a PRD for <X>(or "plan feature X", "spec out X"). - The agent copies the PRD template into
library/requirements/backlog/prd-<###>-<slug>/and assigns<###>as max-plus-one across all lifecycle folders. - It writes the index: overview, goals, non-goals, the feature table, and module-level acceptance criteria.
- It writes one sub-PRD per discrete feature at
prd-<###><letter>-<slug>-<feature>.md, each scoped tight with its own acceptance criteria. - It creates an empty
qa/folder inside the PRD folder. The quality guardian fills it later. The library agent owns the structure and never writes QA content itself. - Lifecycle by moving folders: backlog when planned, move the whole folder to
in-work/when started, move it tocompleted/when shipped. Status is the folder it lives in, never just a line in the frontmatter.
For a bug or incident (IRD):
- Make sure a GitHub issue exists first. IRD numbers equal GitHub issue numbers. Never invent one.
- Command the agent:
write an IRD for issue #<N>(or "track this bug", "document this incident"). - The agent creates
library/issues/backlog/ird-<###>-<slug>/with an index (Problem, Root Cause, Fix Plan, Acceptance Criteria, Related) and an emptyqa/folder. One issue equals one IRD. No sub-IRDs. Keep scope tight. - Lifecycle by moving folders: backlog, then
in-work/, thencompleted/when the fix is verified.
Once your PRDs and IRDs are written, the Thanos Gauntlet Glove is how you execute them. It is the orchestrator skill at .cursor/skills/thanos-gauntlet-glove/. You point it at a set of PRDs and it drives them to 100 percent completion: spec to merged, CI-green PR, with no partial credit allowed. You do not micromanage it. You command it and hold it to the standard.
Invoke it with phrases like "execute the PRDs", "run the gauntlet", "snap it", or "ship these PRDs." The agent then runs four phases:
- Phase 0, Recon and Planning. It reads every PRD end to end and extracts every acceptance criterion into a master checklist, the AC Ledger, saved at the repo root so it survives context loss and you can audit it. It maps dependencies, produces a wave plan that maximizes parallel work, and picks the right model for each task. It shows you the wave plan and ledger, then executes without waiting for further approval.
- Phase 1, Execution. It orchestrates. Sub-agents do the building, each with a tightly scoped brief: the exact criteria it owns, the files it may touch, and how its work gets verified. No partial credit. A criterion is done only when it is fully implemented, proven by passing tests, and nothing else broke. Verification is a separate pass from implementation, because implementers do not grade their own homework. A watchdog kills any stalled sub-agent and re-dispatches the work at a smaller scope.
- Phase 2, Guardian Gauntlet. Once the ledger reads fully verified, it runs the quality and security guardians, fixes anything medium severity or higher through sub-agents, and loops until both guardians come back clean with the test suite still green.
- Phase 3, Ship. It commits, pushes, opens a PR whose description carries the full AC Ledger and wave plan, and then watches CI. If CI fails, it diagnoses, dispatches a fix, and watches the next run until the pipeline is fully green.
How you command it well:
- Feed it tight PRDs. The gauntlet is only as good as the acceptance criteria you wrote. Vague criteria produce vague results. This is why the PRD discipline above is not optional.
- Define the scope, then get out of the way. Tell it which PRDs are in play. Let it plan the waves and pick the models. That is its job.
- Hold the line on done. The skill is built to refuse partial completion. Do not talk it out of that. "Mostly works" is open, not done.
- Read the ledger, not the chatter. The AC Ledger at the repo root is the source of truth for the run. If a criterion is parked as blocked, it will come with a specific ask. Answer the ask and let it keep going.
The standard is the whole point. Every PRD, every acceptance criterion, verified, shipped, and green. Anything less is a failed run.
Source-available. Use the skills and agents anywhere, including commercially. Do not sell them or pass them off as your own, and credit Legion Code Inc. See LICENSE.md for the full terms.
We are Legion. Vibe with Legion.