Skip to content

docs: bring AGENTS.md, PRINCIPLES.md and skills in line with the real layout - #2090

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:docs/principles-consistency-v2
Nov 15, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:docs/principles-consistency-v2

Conversation

@potiuk

@potiuk potiuk commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

  • AGENTS.md, PRINCIPLES.md and write-skill described skills as living in skills/<name>/ or .claude/skills/<name>/; they live in plugins/magpie-<family>/skills/<alias>/ with skills/<name> symlinks. The docs, the scaffold steps and init_skill.py (new --family, default target in the plugin, link depth fixed) now match, and the new-skill checklist lists every frontmatter key the validator requires.
  • Several rules contradicted the repository: main as a "staging branch", "no source code to test", the pre-flight fallback order (legacy in-tree dir before the git-directory home), committer-onboarding's <project> used as a display name, concrete record IDs in issue-sync, three unreferenced code-review siblings that duplicated SKILL.md, and an issue-triage SKILL.md at exactly 500 lines.
  • The Vulnogram JSON generator's SKILL.md is a tool guide, not a skill; it is renamed GUIDE.md and AGENTS.md's skill list now points at the tool's README instead.

Type of change

  • Skill change (.claude/skills/<name>/) — eval fixtures updated below
  • Tool / bridge contract (tools/<system>/*.md)
  • Python package (tools/*/ with pyproject.toml)
  • Groovy reference impl
  • Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
  • Documentation (docs/, README.md, CONTRIBUTING.md)
  • Project template (projects/_template/)
  • CI / dev loop (prek, workflows, validators)
  • Other:

Test plan

  • prek run --files <changed files> passes (except symlink-lint, which fails only on .claude/skills/ relay links the local sandbox kept from being checked out; not touched by this PR)
  • For Python packages touched: pytest for skill-and-tool-validator, security-management (test_body.py) and the tools/dev tests for check-family-plugins, check-shared-blocks, skill-surface-hash, check-placeholders pass; ruff format applied to init_skill.py
  • For Groovy bridges touched: command-line invocation tested end-to-end
  • For skill changes: eval suite passes for the affected skill
    (--check for committer-onboarding, issue-triage, pr-management-code-review, security-issue-import-from-md, security-issue-sync, write-skill; model-graded --cli runs not done)
  • For skill behaviour changes: a new or updated eval fixture is included in this PR
  • Other: prek run lychee on the changed files; init_skill.py demo --family issue scaffolds into plugins/magpie-issue/skills/demo/

RFC-AI-0004 compliance

  • HITL — any new mutation is gated on explicit user confirmation
  • Sandbox — no new unrestricted host access; network reach declared in the adapter
  • Vendor neutrality — placeholders (<PROJECT>, <tracker>, <upstream>, <security-list>) used in all skill / tool prose (the check-placeholders prek hook is the mechanical gate)
  • Conversational + correctable — agentic-override path documented if behaviour is adopter-tunable
  • Write-access discipline — no autonomous outbound messages; drafts only, sent on confirmation
  • Privacy LLM — private content does not reach a non-approved LLM; redactor invoked where needed

Linked issues

Notes for reviewers (optional)

  • PRINCIPLES.md §14 is untouched (a separate PR handles it); §13 and §15 change only the paths they name.
  • The validator's line-limit check now fires at exactly 500 lines, since the principle says "under 500".
  • The release skills' <product-name> / <product_name> placeholder is left as is: it is the product_name key of release-management-config.md, not always the display name.

Generative AI disclosure: this change was prepared with Claude Code (Opus 5).

🤖 Generated with Claude Code

@potiuk potiuk added family:docs Docs, MISSION.md, READMEs capability:authoring Skills that author or maintain other skills: write-skill, optimize-skill family:cross-family Sweeps over the labeler limit labels Nov 15, 2026
@potiuk
potiuk enabled auto-merge (squash) November 15, 2026 06:35
… layout

Fix a set of inconsistencies between the framework's rules and what the
repository actually does:

- describe skills where they live (plugins/magpie-<family>/skills/<alias>/,
  with skills/<name> symlinks) in AGENTS.md, PRINCIPLES.md and write-skill;
  init_skill.py takes --family and defaults its target to the plugin dir
- list every frontmatter key the validator requires for a new skill
- drop the stale "main is a staging branch" and "no code to test" claims
- align committer-onboarding with the <PROJECT> / <project> split
- pre-flight fallback: git-directory home before the legacy in-tree dir
- remove three code-review siblings that duplicated SKILL.md; link the
  import-from-md body template
- rename the Vulnogram JSON generator SKILL.md to GUIDE.md: it is a tool guide
- concrete record IDs in issue-sync become placeholders
- issue-triage SKILL.md under 500 lines; the line-limit check now fires
  at 500, matching "under 500"

Generated-by: Claude Opus 5
Claude-Session: https://claude.ai/code/session_01NyQq9UgHu7T8a8DfcfyP2M
@potiuk
potiuk force-pushed the docs/principles-consistency-v2 branch from 1d1663f to bb3a60a Compare November 15, 2026 06:57
@potiuk
potiuk merged commit f821e67 into apache:main Nov 15, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:authoring Skills that author or maintain other skills: write-skill, optimize-skill family:cross-family Sweeps over the labeler limit family:docs Docs, MISSION.md, READMEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant