Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 3.73 KB

File metadata and controls

61 lines (44 loc) · 3.73 KB

AI Agent Instructions

Project: LeanSpec

Lightweight spec methodology for AI-powered development.

Skills

This project uses the Agent Skills framework for domain-specific guidance. Read the appropriate skill when working on related tasks.

Spec-driven development (GitHub-issue specs)

Lean-spec dogfoods its own SDD methodology with GitHub issues as the canonical spec medium. The specs/ directory is a frozen historical snapshot — new specs are GitHub issues on codervisor/leanspec. A pre-commit hook and CI job (freeze-specs) block additions/modifications under specs/; see specs/FROZEN.md.

  1. leanspec-dev-process - End-to-end SDD loop (spec → branch → PR → merge)

  2. issue-spec - Create lean-spec style GitHub issue specs

    • Location: .agents/skills/issue-spec/SKILL.md
    • Use when: Asked to "spec this" or planning work that needs alignment
    • Key: Body under ~2000 tokens; Overview / Design / Plan / Test / Provider impact / Alignment / Notes
  3. leanspec-pre-push - Pre-push checks (sync main, typecheck, clippy, spec-link)

  4. leanspec-pr-lifecycle - Manage PR post-push (CI triage, review, label flips, merge)

Development & tooling

  1. leanspec-development - Development, commands, publishing, CI/CD, and runner research

  2. agent-browser - Browser automation for testing web apps

    • Location: .agents/skills/agent-browser/SKILL.md
    • Use when: Testing web UIs, interacting with websites, filling forms, taking screenshots
    • Key: Use agent-browser CLI instead of Playwright MCP for browser automation

Reference (external)

  • leanspec (external) - Spec-Driven Development methodology for downstream users
    • Location: skills/leanspec/SKILL.md (shipped from this repo)
    • Install: npx skills add codervisor/leanspec@leanspec
    • Use when: Reading what we ship to users (this repo dogfoods that methodology via the four skills above)

Project-Specific Rules

  1. Use pnpm - Never npm or yarn. All package management uses pnpm.
  2. DRY Principle - Extract shared logic; avoid duplication.
  3. Skills First - Read the relevant skill file before starting work on development, specs, or publishing tasks.
  4. Context Economy - Keep specs under 2000 tokens. Split large tasks.
  5. Progressive Disclosure - Use skills and references for detailed guidance.
  6. GitHub issues are canonical specs - New specs are GitHub issues, not files. The specs/ directory is a frozen snapshot of pre-migration work; do not author new specs/NNN-slug/ directories. See issue-spec and leanspec-dev-process.