Skip to content

re #15 docs: add AgentSpec package guide#53

Merged
tonydspaniard merged 1 commit into
masterfrom
docs/agent-spec
May 26, 2026
Merged

re #15 docs: add AgentSpec package guide#53
tonydspaniard merged 1 commit into
masterfrom
docs/agent-spec

Conversation

@tonydspaniard
Copy link
Copy Markdown
Member

Summary

The page is prose-driven with second-person voice, runnable code examples, and covers:

  • What it is and why it exists (the framework differentiator pitch)
  • Install + quick start (bin/altair manifest:generate, manifest:show, --check)
  • Concepts: the four-role pipeline (Scanner → Generator → Renderer → Writer) with an ASCII diagram
  • Usage: every CLI flag, sidecars (.agent/purpose.md, patterns.md, stability.md), CI integration, application manifest stub
  • Configuration (no Configuration class — wired via the CLI auto-discovery path in bin/altair)
  • Testing (snapshot pattern under tests/AgentSpec/Snapshots/)
  • Extension points (custom renderer + scanner via the two Contracts/ interfaces)
  • Recipes: pre-commit hook, agent-bundle concatenation, authoring a patterns.md
  • Limitations (shape-not-behaviour, app-manifest is v1, no cross-release versioning)

No PHP source touched. composer cs runs cleanly (no files to fix).

Test plan

  • docs/packages/agent-spec.md renders cleanly on github.com (tables, fenced code, links)
  • All relative links in the page resolve (./cli.md will 404 until cli docs land — flagged but intentional)
  • docs/README.md index still groups all existing packages correctly
  • No PHP-side regressions (docs-only change, composer cs passes)

Adds docs/packages/agent-spec.md following the per-package template
established for the framework's documentation set, and slots it into
the index under a new "Tooling" group.

The guide covers: what AgentSpec is and why it exists, install and quick
start, the four-role pipeline (Scanner / Generator / Renderer / Writer),
the CLI surface (manifest:generate, manifest:show, --check), sidecars
(purpose.md, patterns.md, stability.md), the application manifest stub,
container-based pipeline overrides, testing notes, extension points
(renderer + scanner contracts), recipes, and limitations.
@tonydspaniard tonydspaniard merged commit 4ce495d into master May 26, 2026
3 checks passed
@tonydspaniard tonydspaniard deleted the docs/agent-spec branch May 26, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant