Skip to content

Define three-layer skill hierarchy and make Layer 0 foundations downward-only - #212

Merged
sreejithraman merged 2 commits into
mainfrom
skills/layer-foundations
Nov 22, 2026
Merged

sreejithraman merged 2 commits into
mainfrom
skills/layer-foundations

Conversation

@sreejithraman

@sreejithraman sreejithraman commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

Defines the three-layer skill hierarchy (foundation -> capability -> workflow) and link-hygiene audit rules in writing-for-agents, and makes Layer 0 foundations (engineering-principles, codebase-design) strictly downward-only.

  • Stack position: Layer 1 of 5 (base: main; next: Rewrite verify and diagnosing-bugs, and clean tdd and show-me links #213).
  • writing-for-agents: adds explicit foundation/capability/workflow layer definitions, shared-reference homing rules (never home shared references inside a higher workflow or user-invoked skill), link-hygiene audit items, and clarifies that distinct section anchors into one multi-section reference are allowed.
  • engineering-principles: opens with a plain-prose contract, homes references/measurement-validity.md (moved from diagnosing-bugs with its pstack benchmark-checklist provenance moved in SOURCES.md), and removes 12 upward cross-skill links across principle references while keeping every principle rule intact.
  • codebase-design: opens with a plain-prose contract, homes references/experiments.md (moved down from user-invoked improve-codebase-architecture), removes upward links and SKILL.md back-links, and adds downward [Arena](../arena/SKILL.md) routing in improve-codebase-architecture so alternative-interface comparisons remain reachable at this layer.
  • Updates all caller paths to the moved references so this layer passes CI independently.

Evidence

  • python3 scripts/check.py on ade4b8b4c493aa4de6f88cd0f85bd67ce35b2b99: passed (63 skills checked; 552/552 tests across 25 files).
  • Independent multi-model review-fix-loop (sreestack-skills-rewrite, 3 passes: Wave 1 Primary/Ponytail/Thermo, Wave 2 Adversarial, Pass 2 & Pass 3 Primary): No issues found (Spec: pass, Standards: pass).
  • Disclosed proof gap: live fresh-session behavioral trials on rewritten skills were not run in this unattended session; all removed/moved rules were settled against 0305fe7f originals and verified by independent reviews.

Merge Danger

Two-way door (documentation/skill Markdown only; cleanly reversible via revert). Moves measurement-validity.md and experiments.md and updates every internal consumer in this PR; external bookmarks to old paths would need updating. Dependent layers #213–#216 build on these foundation homes.

sreejithraman and others added 2 commits November 21, 2026 02:19
…ard-only

- Add foundation/capability/workflow layer definitions, shared-reference
  homing rules, and link-hygiene audit checks to writing-for-agents.
- Move measurement-validity.md into engineering-principles and
  experiments.md into codebase-design so callers point downward to
  model-invoked foundations.
- Remove upward and circular cross-skill links and SKILL.md back-links
  from engineering-principles and codebase-design, and open both with
  explicit contracts.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Move pstack benchmark-checklist provenance bullet from diagnosing-bugs
  to engineering-principles and trim rewrite-history wording in SOURCES.md.
- Link Arena from improve-codebase-architecture in Layer 1 so intermediate
  heads keep alternative-interface comparison routing intact.
- Clarify distinct-anchor link rule in writing-for-agents, tighten
  engineering-principles opener, and remove dangling dispatch wording in
  DESIGN-IT-TWICE.md.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@sreejithraman
sreejithraman added this pull request to stack #217 November 21, 2026 07:58
@sreejithraman sreejithraman changed the title skills/layer foundations Define three-layer skill hierarchy and make Layer 0 foundations downward-only Nov 21, 2026
@sreejithraman
sreejithraman merged commit 596d645 into main Nov 22, 2026
2 checks passed
@sreejithraman
sreejithraman deleted the skills/layer-foundations branch November 22, 2026 03:12
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