# Agent Skills & Engineering Doctrines Library — Complete AI & LLM Reference Corpus (`llms-full.txt`) - Repository: https://github.com/mohan-n-swamy/agent-skills-public - Web Discovery URL: https://mohan-n-swamy.github.io/repos/agent-skills-public/ - License: MIT - Keywords: agent-skills, claude-skills, claude-code, codex, cursor, ai-agents, context-engineering, software-architecture, product-design, open-source --- ## File: `AI-README.md` — AI-README.md --- repo: "mohan-n-swamy/agent-skills-public" title: "Agent Skills & Engineering Doctrines Library" license: "MIT" keywords: [agent-skills, claude-skills, claude-code, codex, cursor, ai-agents, context-engineering, software-architecture, product-design, open-source] capabilities: - "31 modular `SKILL.md` directories compatible with `~/.agents/skills`, `~/.claude/skills`, `~/.codex/skills`, and `~/.cursor/skills`." - "Complete Manufacturing Pipeline (`product-walk` -> `manuf-product-design` -> `manuf-design-qa` -> `manufacture` -> `manuf-qa` -> `ship-verify`)." - "9 Golden Rules Doctrines (`doctrines/`) covering Product, Engineering (`xxyy` integer states, append-only history), UI/UX, Testing, Deploy, Handover, AI Caching/Routing, Integrations, and Evidence." - "Bundled `/oss-publish` skill with portable `leak-gate.py`, `repo-contract-gate.py`, and headless Chromium `render-board.py`." - "`bin/skill-lint.py` validator measuring startup-index vs full-body token compression across the skill catalog." - "`scripts/anti-slop-lint.sh` deterministic prose and UI linter enforcing Strunk & White and Communication Doctrine canons." when_to_use: - "A cross-provider library of 31 production `SKILL.md` workflows and 9 engineering/product doctrines for Claude Code, OpenAI Codex, Cursor, Grok, and Antigravity — covering product-walk discovery, zero-decision manufacturing specs, 5-step process cutting, multi-advisor councils, plain-English writing canons, and zero-leak open-source publishing." - "Out-of-the-box AI coding assistants jump straight from a vague prompt to code, inventing schemas, hand-rolling inconsistent UI, repeating failed patches, and claiming 'done' without running verification commands. Stuffing all rules into one giant `CLAUDE.md` bloats every turn. Progressive-disclosure `SKILL.md` modules solve both problems by loading deep operational procedures and deterministic gate scripts only when triggered." inputs_required: - "SKILLS_TARGET_DIR: Destination folder for `./install.sh`" - "ORG_NAME: Default organization label used by scaffold templates" - "DEFAULT_MODEL_ROUTER: Optional MCP delegation router binary or server name" - "STARTUP_TOKEN_BUDGET_MAX: Ceiling checked by bin/skill-lint.py for startup YAML descriptions" quickstart: - "./install.sh --dry-run # audit all 31 skills and print token compression stats" - "./install.sh --target=all # install into ~/.agents/skills and ~/.claude/skills" - "bash scripts/anti-slop-lint.sh --prose README.md" --- # Agent Skills & Engineering Doctrines Library — Machine-Readable Agent Guide A cross-provider library of 31 production `SKILL.md` workflows and 9 engineering/product doctrines for Claude Code, OpenAI Codex, Cursor, Grok, and Antigravity — covering product-walk discovery, zero-decision manufacturing specs, 5-step process cutting, multi-advisor councils, plain-English writing canons, and zero-leak open-source publishing. Out-of-the-box AI coding assistants jump straight from a vague prompt to code, inventing schemas, hand-rolling inconsistent UI, repeating failed patches, and claiming 'done' without running verification commands. Stuffing all rules into one giant `CLAUDE.md` bloats every turn. Progressive-disclosure `SKILL.md` modules solve both problems by loading deep operational procedures and deterministic gate scripts only when triggered. Key modules and entry points in this repository: - `skills//SKILL.md`: 31 standalone skill definitions with trigger frontmatter and step-by-step procedures - `skills/lenses//GUIDE.md`: 8 book-distilled domain thinking lenses (engineering, product, strategy, operations, data-fluency, CX, systems, learning) - `skills/oss-publish/`: Zero-leak open-source twin publisher skill with bundled leak-gate and contract-gate scripts - `doctrines/`: 9 Golden Rules engineering/product doctrines plus the Communication Doctrine - `bin/skill-lint.py`: YAML frontmatter validator and startup token-budget calculator - `scripts/anti-slop-lint.sh`: Deterministic prose and UI AI-slop detector - `install.sh`: Non-destructive installer supporting `--target=agents|claude|codex|cursor|all` Every organization-specific value enters through `.env` (copied from `.env.example`) or external adapter files. No source edit is needed to change organization names, endpoints, database URLs, webhook secrets, or thresholds. When a human asks an AI coding agent to deploy or adapt `agent-skills-public` into their stack: 1. Run `./install.sh --target=all` (refuses to overwrite any existing skill directory with the same name). 2. Delete any skill folders your workflow never uses so your startup skill index stays tight. 3. Customize `skills/writing-style/SKILL.md` with your own 4-line voice stance. 4. Run `python3 bin/skill-lint.py` in CI whenever adding a new skill to verify trigger clarity and token budget. - Product Requirements: `docs/PRD.md` - Working-Backwards PR-FAQ: `docs/PR-FAQ.md` - High-Level Architecture: `docs/HLD.md` - Low-Level Interfaces & Runbook: `docs/LLD.md` - Coding Agent Rules: `AGENTS.md` --- ## File: `.env.example` — Environment Contract (.env.example) ```ini # agent-skills-public — Optional Installer & Lint Defaults SKILLS_TARGET_DIR=~/.agents/skills ORG_NAME=NorthstarOps DEFAULT_MODEL_ROUTER=mcp-brain-router STARTUP_TOKEN_BUDGET_MAX=4500 ``` --- ## File: `AGENTS.md` — AGENTS.md # AGENTS.md — Agent Skills & Engineering Doctrines Library Read this file first before modifying `agent-skills-public`. ## Purpose A cross-provider library of 31 production `SKILL.md` workflows and 9 engineering/product doctrines for Claude Code, OpenAI Codex, Cursor, Grok, and Antigravity — covering product-walk discovery, zero-decision manufacturing specs, 5-step process cutting, multi-advisor councils, plain-English writing canons, and zero-leak open-source publishing. ## Commands ```bash ./install.sh --dry-run # audit all 31 skills and print token compression stats ./install.sh --target=all # install into ~/.agents/skills and ~/.claude/skills bash scripts/anti-slop-lint.sh --prose README.md ``` ## Module Map - `skills//SKILL.md`: 31 standalone skill definitions with trigger frontmatter and step-by-step procedures - `skills/lenses//GUIDE.md`: 8 book-distilled domain thinking lenses (engineering, product, strategy, operations, data-fluency, CX, systems, learning) - `skills/oss-publish/`: Zero-leak open-source twin publisher skill with bundled leak-gate and contract-gate scripts - `doctrines/`: 9 Golden Rules engineering/product doctrines plus the Communication Doctrine - `bin/skill-lint.py`: YAML frontmatter validator and startup token-budget calculator - `scripts/anti-slop-lint.sh`: Deterministic prose and UI AI-slop detector - `install.sh`: Non-destructive installer supporting `--target=agents|claude|codex|cursor|all` ## Invariants 1. Keep all organization names, credentials, domains, and thresholds in `.env` or external config files. Never hardcode company names, host IPs, or secrets in source files. 2. Deterministic business logic belongs in code and lookup tables, not inside LLM prompts. 3. Update `docs/HLD.md`, `docs/LLD.md`, and `.env.example` in the same commit whenever an interface or environment variable changes. 4. Run the repository smoke check and secret scan before opening a pull request. --- ## File: `docs/PRD.md` — Product Requirements Document (docs/PRD.md) # Product Requirements Document — Agent Skills & Engineering Doctrines Library A cross-provider library of 31 production `SKILL.md` workflows and 9 engineering/product doctrines for Claude Code, OpenAI Codex, Cursor, Grok, and Antigravity — covering product-walk discovery, zero-decision manufacturing specs, 5-step process cutting, multi-advisor councils, plain-English writing canons, and zero-leak open-source publishing. ## 1. Problem Out-of-the-box AI coding assistants jump straight from a vague prompt to code, inventing schemas, hand-rolling inconsistent UI, repeating failed patches, and claiming 'done' without running verification commands. Stuffing all rules into one giant `CLAUDE.md` bloats every turn. Progressive-disclosure `SKILL.md` modules solve both problems by loading deep operational procedures and deterministic gate scripts only when triggered. ## 2. Users and Jobs-to-be-Done | Persona | Job-to-be-Done | |---|---| | AI-Native Operator / Product Leader | Walk a PRD backward and forward (`/product-walk`), stress-test decisions (`/council`, `/stress-test`), and cut bloated processes (`/five-step`). | | Staff / Principal Engineer | Enforce pre-work rigor (`/rigor`), zero-decision component packs (`/manuf-product-design`, `/manufacture`), YAGNI minimalism (`/ponytail`), and served-commit verification (`/ship-verify`). | | Open-Source Maintainer | Turn internal tools into clean, generalized public repositories (`/oss-publish`) and keep documentation rebased to code truth (`/rebase-to-latest`). | ## 3. Core Capabilities - 31 modular `SKILL.md` directories compatible with `~/.agents/skills`, `~/.claude/skills`, `~/.codex/skills`, and `~/.cursor/skills`. - Complete Manufacturing Pipeline (`product-walk` -> `manuf-product-design` -> `manuf-design-qa` -> `manufacture` -> `manuf-qa` -> `ship-verify`). - 9 Golden Rules Doctrines (`doctrines/`) covering Product, Engineering (`xxyy` integer states, append-only history), UI/UX, Testing, Deploy, Handover, AI Caching/Routing, Integrations, and Evidence. - Bundled `/oss-publish` skill with portable `leak-gate.py`, `repo-contract-gate.py`, and headless Chromium `render-board.py`. - `bin/skill-lint.py` validator measuring startup-index vs full-body token compression across the skill catalog. - `scripts/anti-slop-lint.sh` deterministic prose and UI linter enforcing Strunk & White and Communication Doctrine canons. ## 4. Configurable Inputs Adopters configure the system for their own organization without editing core application logic: | Variable | Default / Example | Purpose | |---|---|---| | `SKILLS_TARGET_DIR` | `~/.agents/skills` | Destination folder for `./install.sh` | | `ORG_NAME` | `NorthstarOps` | Default organization label used by scaffold templates | | `DEFAULT_MODEL_ROUTER` | `mcp-brain-router` | Optional MCP delegation router binary or server name | | `STARTUP_TOKEN_BUDGET_MAX` | `4500` | Ceiling checked by bin/skill-lint.py for startup YAML descriptions | ## 5. Phasing and Stability Exit Criteria 1. **Phase 1 (Local Synthetic Run):** Clone the repository, copy `.env.example` to `.env`, and run the quickstart commands against synthetic seed data. Exit criterion: smoke checks pass with zero external credentials. 2. **Phase 2 (Read-Only Shadow Wiring):** Connect read-only credentials or webhook listeners in shadow/dry-run mode. Exit criterion: 100 consecutive events or queries reconcile cleanly against source records. 3. **Phase 3 (Production Cutover):** Enable live writes, alerts, or routing behind bounded retry and idempotency guards. ## 6. Non-Goals - Shipping organization-specific business rules hardcoded in application source. - Storing credentials, personal customer records, or tenant URLs inside version control. - Replacing deterministic validation or arithmetic with unconstrained model prompts. --- ## File: `docs/PR-FAQ.md` — Working-Backwards PR-FAQ (docs/PR-FAQ.md) # Working-Backwards PR-FAQ — Agent Skills & Engineering Doctrines Library **Release Summary:** `agent-skills-public` gives engineering and operations teams a self-hosted, open-source implementation of Agent Skills & Engineering Doctrines Library that configures via `.env` and runs on standard infrastructure in minutes. ## Press Release Operations and engineering teams often rebuild the same internal workflows behind closed doors or pay per-seat SaaS markups for rigid tools that cannot match their field reality. `agent-skills-public` open-sources a battle-tested implementation of Agent Skills & Engineering Doctrines Library, stripped of all single-company assumptions and packaged with clear adapter boundaries, synthetic demo data, and machine-readable agent documentation. Any team can fork `agent-skills-public`, supply their own `.env` inputs and taxonomy config, and deploy locally or in production with Docker, Python, or Node. AI coding assistants such as Claude Code, Codex, and Cursor can read `AI-README.md` and `llms.txt` to wire custom ERP, CRM, or warehouse adapters in a single session. ## External Adopter FAQ **Q1: How long does it take to run locally after cloning?** Under five minutes. Copy `.env.example` to `.env` and run the quickstart commands in `README.md`. Synthetic fixtures let you inspect the workflow before connecting live credentials. **Q2: Do I need to rewrite source files to use my own company name, channels, or rules?** No. Organization names, endpoints, thresholds, and credentials sit in `.env` and declarative config files. External system specifics live behind narrow adapter modules documented in `docs/LLD.md`. **Q3: What license governs this repository?** MIT License. You can fork, modify, self-host, and use it commercially without restriction. ## Internal Engineering & Security FAQ **Q4: How do we prevent tenant or employer data from ever entering a public fork?** The repository starts from a clean git history, excludes raw exports and binary dumps, validates every commit through `gitleaks`, and ships only synthetic fixtures. **Q5: What happens when an upstream API or model provider is slow or unavailable?** Inbound webhooks persist raw payloads before processing, outbound writes carry idempotency keys with bounded exponential backoff, and model-backed paths fail open to deterministic rules or explicit human queues. --- ## File: `docs/HLD.md` — High-Level Design (docs/HLD.md) # High-Level Design (HLD) — Agent Skills & Engineering Doctrines Library A cross-provider library of 31 production `SKILL.md` workflows and 9 engineering/product doctrines for Claude Code, OpenAI Codex, Cursor, Grok, and Antigravity — covering product-walk discovery, zero-decision manufacturing specs, 5-step process cutting, multi-advisor councils, plain-English writing canons, and zero-leak open-source publishing. ## 1. System Topology ```mermaid flowchart LR Boot["Session Boot"] -->|"reads YAML frontmatter (~12% tokens)"| Index["31 Skill Triggers"] Prompt["User Task"] --> Index Index -->|"matches trigger"| Skill["Selected SKILL.md + references/"] Skill -->|"executes"| Gates["Bundled scripts/ (skill-lint, anti-slop, leak-gate)"] Doctrines["doctrines/ (9 Golden Rules)"] --> Skill ``` ## 2. Architectural Decisions and Rejected Alternatives | Decision | Why It Holds | Rejected Alternative | |---|---|---| | Progressive disclosure per skill folder | Keeps session startup lean while giving triggered workflows full checklists and reference guides. | Single 2,000-line global CLAUDE.md | | Shared `~/.agents/skills` canonical tree with harness symlinks | One edit updates Claude Code, Codex, Grok, and Antigravity simultaneously without drift. | Separate per-provider copies | | Working syntheses only inside `lenses/` | Transfers actionable book rules cleanly while respecting authors' copyright on chapter text. | Republishing raw book chapter notes | ## 3. Data Flow and Failure Boundaries 1. **Configuration Boundary:** Startup validates `.env` variables and declarative config schemas before accepting traffic or running scheduled jobs. 2. **Adapter Boundary:** External services (databases, chat channels, HRMS, warehouses, or LLM providers) sit behind explicit adapter modules so failures stay isolated and testable with local mocks. 3. **Observability and Audit:** State transitions and job executions emit structured logs and deterministic status records rather than mutating state silently. ## 4. Scaling Notes - **1x to 10x load:** Single-node Docker Compose or process supervisor handles standard team workloads with indexed database queries and bounded worker concurrency. - **First bottleneck at 10x+:** High-frequency webhook or batch ingestion queues; mitigate by separating the stateless HTTP receiver from background worker processes sharing Redis or PostgreSQL locks. --- ## File: `docs/LLD.md` — Low-Level Design & Runbook (docs/LLD.md) # Low-Level Design (LLD) & Operations Runbook — Agent Skills & Engineering Doctrines Library This document defines the module responsibilities, environment contract, and operational procedures for `agent-skills-public`. ## 1. Module and File Inventory | Path | Responsibility | |---|---| | `skills//SKILL.md` | 31 standalone skill definitions with trigger frontmatter and step-by-step procedures | | `skills/lenses//GUIDE.md` | 8 book-distilled domain thinking lenses (engineering, product, strategy, operations, data-fluency, CX, systems, learning) | | `skills/oss-publish/` | Zero-leak open-source twin publisher skill with bundled leak-gate and contract-gate scripts | | `doctrines/` | 9 Golden Rules engineering/product doctrines plus the Communication Doctrine | | `bin/skill-lint.py` | YAML frontmatter validator and startup token-budget calculator | | `scripts/anti-slop-lint.sh` | Deterministic prose and UI AI-slop detector | | `install.sh` | Non-destructive installer supporting `--target=agents|claude|codex|cursor|all` | ## 2. Environment Variable Contract | Variable | Default / Example | Required | Description | |---|---|---|---| | `SKILLS_TARGET_DIR` | `~/.agents/skills` | Yes | Destination folder for `./install.sh` | | `ORG_NAME` | `NorthstarOps` | Yes | Default organization label used by scaffold templates | | `DEFAULT_MODEL_ROUTER` | `mcp-brain-router` | Yes | Optional MCP delegation router binary or server name | | `STARTUP_TOKEN_BUDGET_MAX` | `4500` | Yes | Ceiling checked by bin/skill-lint.py for startup YAML descriptions | ## 3. Extension Recipe 1. Run `./install.sh --target=all` (refuses to overwrite any existing skill directory with the same name). 2. Delete any skill folders your workflow never uses so your startup skill index stays tight. 3. Customize `skills/writing-style/SKILL.md` with your own 4-line voice stance. 4. Run `python3 bin/skill-lint.py` in CI whenever adding a new skill to verify trigger clarity and token budget. ## 4. Operations Runbook ### 1. Validate all skill frontmatter and token budgets ```bash python3 bin/skill-lint.py ``` ### 2. Install skills for Claude Code and shared agent harnesses ```bash ./install.sh --target=all ``` ### 3. Lint markdown prose for AI tells before committing ```bash bash scripts/anti-slop-lint.sh --prose docs/PRD.md ``` --- ## File: `docs/RESEARCH-2026.md` — 2026 Research & Landscape Notes (docs/RESEARCH-2026.md) # 2026 Agent Skills Standard (`SKILL.md`) Research & Design Notes `agent-skills-public` packages 31 modular operational and engineering skills using the open `SKILL.md` progressive-disclosure format supported across Claude Code, OpenAI Codex, Cursor, Windsurf, Grok, and Antigravity. ## 1. Alignment with the 2026 `SKILL.md` Progressive-Disclosure Standard Modern coding harnesses load only YAML frontmatter (`name` and `description`) at session startup to preserve context-window budget, pulling the full `SKILL.md` body and `references/` only when a task matches a trigger description. - **Trigger-Specific Descriptions:** Every skill frontmatter states both *what it does* and *exact trigger phrases / when to skip* (`SKIP WHEN`), preventing false activations. - **Scripts Over Prose (`scripts/`):** Deterministic checks (`bin/skill-lint.py`, `scripts/anti-slop-lint.sh`, `skills/oss-publish/scripts/leak-gate.py`) execute as code rather than asking an LLM to simulate regexes or token math. - **Measured Context Savings:** Running `python3 bin/skill-lint.py` verifies that startup indexing consumes ~12% of the tokens that always-loaded monolithic system prompts would burn.