Skill in 《Harness Step 1 — Create AGENTS.md & Knowledge Base》

Skill Description

Scans your codebase and generates AGENTS.md (the agent's orientation file) plus a complete docs/ knowledge base skeleton, so any Claude Code session orients in under 30 seconds without you re-explaining the project.

Skill.md

Harness Step 1 — Create AGENTS.md & Knowledge Base

The core problem with Claude Code on real projects: every new session starts cold. The agent has no idea what the project is, how it's structured, or what the rules are. You end up re-explaining the same things across dozens of sessions. This skill fixes that at the source — scan the codebase once, generate structured knowledge files, and every future session orients in under 30 seconds without your help.

What Gets Generated

project-root/
├── AGENTS.md                    ← agent's orientation file, 80-120 lines
└── docs/
    ├── ARCHITECTURE.md          ← module map, dependency rules, data flows
    ├── CONVENTIONS.md           ← naming patterns, file organization
    ├── TECH_DECISIONS.md        ← why each framework/library was chosen
    ├── QUALITY.md               ← Definition of Done, code review checklist
    └── exec-plans/
        ├── active/              ← in-progress work
        ├── backlog.md           ← planned but not yet scheduled
        └── tech-debt-tracker.md ← known quality issues

Design Principles

  • AGENTS.md is the table of contents, docs/ is the book: agents use AGENTS.md to orient, docs/ to understand
  • Inferred ≠ invented: anything that can't be confirmed from the codebase is marked "TODO: confirm" — never fabricated
  • Stack-agnostic: Python, Node.js, Go, Rust; monolith, microservices, monorepo — all work

Supported Use Cases

  • Adding agent support to an existing project for the first time
  • Onboarding to an unfamiliar codebase (let the agent read it first, then work with you)
  • Refreshing agent context after a major refactor
  • Any situation where you want Claude Code to stop asking "what is this project?"

How to Use

  1. Open Claude Code in your project root
  2. Say "add agent support" or "create AGENTS.md" or "start harness engineering"
  3. The skill scans 2–3 directory levels, dependency files, and existing docs
  4. All files are generated; the skill lists what needs human confirmation
  5. Run harness-step2-fill-docs next to deep-fill docs/ with content from the actual code

Limitations

The skill reads files only — it can't observe runtime behavior (API response shapes, DB contents). TECH_DECISIONS.md often needs human input for historical context: the code shows what was chosen, but not why.

Install & Use

Install command

npx skills add simbajigege/book2skills/skills/harness-step1-create-agent-md
OR

Direct download

Related Skills

Tool Permission System AI Skill

Design a configurable, layered permission/safety system for agent tools: one permission pipeline decides allow / ask / deny across enterprise/user/project scopes.

Harness Step 3 — Session State Management AI Skill

Creates init.sh (environment health check), tasks.json (structured task queue), and progress.md (append-only session ...

Harness Step 2 — Fill docs/ with Real Content AI Skill

Deep-reads your codebase and fills every docs/ file with specific, accurate content grounded in what the code actuall...

Agent Memory Implementation Guide AI Skill

Restructures a bloated or chaotic MEMORY.md into the 2-layer architecture Claude Code's autoDream service uses intern...

Session Dream AI Skill

On-demand session memory distillation — extracts key decisions, eliminated approaches, new discoveries, and current b...

Compact with Memory AI Skill

Executes /compact correctly — generates a high-quality conversation summary that preserves reasoning, decisions, and ...

Compact Memory Implementation Guide AI Skill

A developer implementation guide for adding compact memory to an Agent built with the Anthropic API or Claude Agent S...

LangChain Tool Builder AI Skill

Build LangChain (Python) tools using Claude Code's fail-closed design pattern — unified name, schema, security, and e...

Query Loop Implementation AI Skill

Implement a production-ready LLM query loop for AI applications: tool calling, structured tool_result feedback, ReAct...

Perennial Seller: Holiday's Longevity Framework AI Skill

Apply Ryan Holiday's Perennial Seller framework to evaluate creative work, sharpen positioning, build enduring market...

StoryBrand Messaging Framework AI Skill

Apply Donald Miller's StoryBrand framework from Building a StoryBrand to clarify offers, write BrandScripts, improve ...