documentation-layout - generalize examples carve-out and require flat skill folders #80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Two extensions to
documentation-layout(agentic_os/check_documentation_layout.py):Rule 1 — generalize the
examples/carve-out. Todayis_example_readme()exempts onlyexamples/<name>/README.mdandexamples/<name>/<x>/README.mdat the repo root. Idiomatic Go/Rust examples can be nested deeper and may include.mdfiles beyondREADME.md. Generalize: any path containing aexamples/segment at any depth may contain.mdfiles of any name.Rule 2 — skills must be flat (new). Inside a skill folder (
.agents/skills/<skill>/,.claude/skills/<skill>/,skills/<skill>/), no subdirectories. All files (SKILL.md, references, anything else) must live as direct children, besideSKILL.md. The current convention of<skill>/references/<file>.mdbecomes a violation; references move up to<skill>/<file>.md.Why
Rule 1 unblocks legitimate examples trees that the narrow current carve-out can't represent. Rule 2 mirrors the existing
docs/flatness rule and makes skill contents directly greppable / loader-discoverable without one more layer of directory walk.Scope of this issue
Code change in
agentic_os/check_documentation_layout.pyonly:is_example_readme()withis_under_examples()(any depth, any.mdfilename).check_skill_flatness()that walks eachSKILL_PATHSroot and flags any directory found under a skill folder.main().Out of scope
agentic-os's own skills (thereferences/directories). The hook is not enabled on this repo yet; existing skills will break when it is. Separate sweep, separate issue.apply-agentic-os-hooks.py. Separate issue.Acceptance
is_under_examples(Path("examples/foo/bar/baz.md"))returnsTrue..agents/skills/<skill>/produces a violation naming that path and pointing at "skill folders must be flat".