Skip to content

fix(agents): sync agent.md descriptions with SKILL.md, fix gitignore guidance#15

Closed
bburda wants to merge 1 commit into
mainfrom
fix/agent-md-truncation-and-gitignore
Closed

fix(agents): sync agent.md descriptions with SKILL.md, fix gitignore guidance#15
bburda wants to merge 1 commit into
mainfrom
fix/agent-md-truncation-and-gitignore

Conversation

@bburda
Copy link
Copy Markdown
Contributor

@bburda bburda commented May 5, 2026

Closes #12.

Summary

  • 61 thin-wrapper agents regenerated: frontmatter description: and body line now copy the SKILL.md description verbatim. Existing handoffs: entries preserved.
  • 8 fat agents (mece, plan, change, spec, setup, decide, release, trace): only the frontmatter description: is swapped for the SKILL.md value. Hand-tailored inline body content (Process, Steps, Constraints) is left untouched to avoid UX regression.
  • pharaoh.setup.agent.md Step 3: rewritten to mirror skills/pharaoh-setup/SKILL.md Step 4b. Now ignores only the ephemeral subpaths (.pharaoh/runs/, .pharaoh/plans/, .pharaoh/session.json, .pharaoh/cache/); .pharaoh/project/ tailoring stays tracked.
  • .github/workflows/ci.yaml: the agent-frontmatter validation step now fails when description: has unbalanced parentheses, brackets, or backticks. Catches the exact truncation class that produced the original regression ((e. and `index.).

Why

Issue #12 surfaced two visibly broken descriptions (pharaoh.write-plan, pharaoh.toctree-emit) flagged by Copilot Code Review on useblocks/sphinx-needs-demo#51, plus contradictory .gitignore guidance in pharaoh.setup.agent.md that conflicted with its own SKILL.md. Auditing all 71 agents showed they all diverged from their SKILL.md to varying degrees, so the cleanup is repo-wide.

Test plan

  • python3 audit confirms 0 description mismatches against SKILL.md (was 71)
  • python3 audit confirms 0 unbalanced markdown in any agent description (was 2)
  • Local run of the CI Validate agent frontmatter step passes (status 0)
  • Synthetic broken file detected by the new CI guard (status 1)
  • Spot-checked thin wrappers with non-empty handoffs (bootstrap, diagram-lint, status-lifecycle-check, use-case-diagram-draft) — handoffs preserved verbatim
  • Spot-checked fat agents (mece, setup, execute-plan) — fat-agent body content untouched, only description: line changed

…guidance (#12)

The 71 .github/agents/pharaoh.*.agent.md files shipped with descriptions
that diverged from their source SKILL.md. Two were catastrophically
truncated at the first '.' (split caught 'e.g.' and 'index.rst'),
producing unclosed parens and backticks that broke Markdown rendering
in Copilot's review UI on downstream PRs (sphinx-needs-demo#51).

Changes:
- 61 thin-wrapper agents: regenerate description and body verbatim
  from SKILL.md frontmatter; preserve existing handoffs.
- 8 fat agents (mece, plan, change, spec, setup, decide, release,
  trace): update only the frontmatter description; leave hand-tailored
  inline content untouched.
- pharaoh.setup.agent.md Step 3: rewrite gitignore guidance to mirror
  SKILL.md Step 4b. Ignore only ephemeral subpaths
  (.pharaoh/runs/, .pharaoh/plans/, .pharaoh/session.json,
  .pharaoh/cache/); .pharaoh/project/ tailoring stays tracked.
- ci.yaml: add a guard that fails the agent-frontmatter step when the
  description has unbalanced parens, brackets, or backticks. Catches
  the truncation class that produced the original regression.
Copilot AI review requested due to automatic review settings May 5, 2026 13:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes agent template regressions by synchronizing .github/agents/*.agent.md descriptions with their corresponding skills/*/SKILL.md descriptions, updates pharaoh.setup’s .gitignore guidance to only ignore ephemeral .pharaoh/ paths, and hardens CI to catch future truncated/broken agent descriptions.

Changes:

  • Regenerated thin-wrapper agents so both frontmatter description: and the one-line body description match SKILL.md verbatim (preserving handoffs:).
  • Updated pharaoh.setup.agent.md to recommend ignoring only ephemeral .pharaoh/ subpaths (keeping .pharaoh/project/ tracked).
  • Extended CI validation to fail on unbalanced parentheses/brackets/backticks in agent frontmatter descriptions.

Reviewed changes

Copilot reviewed 72 out of 72 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/ci.yaml Add CI guard to detect unbalanced markdown delimiters in agent frontmatter description:.
.github/agents/pharaoh.activity-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.api-coverage-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.arch-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.arch-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.audit-fanout.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.block-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.bootstrap.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.change.agent.md Sync agent frontmatter description with SKILL.md.
.github/agents/pharaoh.class-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.component-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.context-gather.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.coverage-gap.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.decide.agent.md Sync agent frontmatter description with SKILL.md.
.github/agents/pharaoh.decision-record.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.decision-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.deployment-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.diagram-lint.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.diagram-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.dispatch-signal-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.execute-plan.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.fault-tree-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.feat-balance.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.feat-component-extract.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.feat-draft-from-docs.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.feat-file-map.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.feat-flow-extract.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.feat-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.finding-record.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.flow.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.fmea.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.fmea-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.gate-advisor.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.id-allocate.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.id-convention-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.lifecycle-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.link-completeness-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.mece.agent.md Sync agent frontmatter description with SKILL.md.
.github/agents/pharaoh.output-validate.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.papyrus-non-empty-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.plan.agent.md Sync agent frontmatter description with SKILL.md.
.github/agents/pharaoh.process-audit.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.prose-migrate.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.quality-gate.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.release.agent.md Sync agent frontmatter description with SKILL.md.
.github/agents/pharaoh.reproducibility-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.req-code-grounding-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.req-codelink-annotate.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.req-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.req-from-code.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.req-regenerate.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.req-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.review-completeness.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.self-review-coverage-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.sequence-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.setup.agent.md Sync frontmatter description with SKILL.md; fix .gitignore guidance to ignore only ephemeral .pharaoh/ paths.
.github/agents/pharaoh.spec.agent.md Sync agent frontmatter description with SKILL.md.
.github/agents/pharaoh.sphinx-extension-add.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.standard-conformance.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.state-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.status-lifecycle-check.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.tailor-bootstrap.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.tailor-code-grounding-filters.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.tailor-detect.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.tailor-fill.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.tailor-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.toctree-emit.agent.md Fix previously truncated description by syncing with SKILL.md.
.github/agents/pharaoh.trace.agent.md Sync agent frontmatter description with SKILL.md.
.github/agents/pharaoh.use-case-diagram-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.vplan-draft.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.vplan-review.agent.md Sync agent description with SKILL.md.
.github/agents/pharaoh.write-plan.agent.md Fix previously truncated description by syncing with SKILL.md.

@bburda bburda self-assigned this May 5, 2026
@bburda
Copy link
Copy Markdown
Contributor Author

bburda commented May 5, 2026

#16 included this

@bburda bburda closed this May 5, 2026
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.

agent.md files in .github/agents have truncated descriptions and contradict their own skill specs

2 participants