Skip to content

chore: build system skill body rebased#43

Merged
Rodriguespn merged 2 commits intomainfrom
chore/build-system-skill-body-v2
Feb 16, 2026
Merged

chore: build system skill body rebased#43
Rodriguespn merged 2 commits intomainfrom
chore/build-system-skill-body-v2

Conversation

@Rodriguespn
Copy link
Collaborator

@Rodriguespn Rodriguespn commented Feb 16, 2026

What kind of change does this PR introduce?

Bug fix, feature, docs update, ...

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

Summary by CodeRabbit

  • Documentation

    • Restructured skill guides with improved organization, detailed usage workflows, prioritized rule categories, and reference sections.
  • Chores

    • Enhanced skill validation for consistent naming, directory structure, and format compliance.

Rodriguespn and others added 2 commits February 16, 2026 14:57
* feat: extract SKILL.md body into AGENTS.md with H1 title and Overview section

Build system now parses SKILL.md body to extract H1 heading as the AGENTS.md
title and places remaining content under an Overview section. Adds validation
that SKILL.md body starts with H1, directory name is kebab-case, and name
field matches directory name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: AGENTS.md is now SKILL.md body with frontmatter stripped

Build now generates AGENTS.md by extracting the SKILL.md markdown body
(everything after YAML frontmatter). CLAUDE.md remains a symlink to
AGENTS.md. Removes content generation logic (Structure, Usage, Overview,
Reference Categories, Available References sections) — SKILL.md is the
single source of truth for agent instructions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add Structure and Usage sections to AGENTS.md, validate H1 title matches directory name

Build now generates AGENTS.md as: H1 Title > Structure > Usage > rest of
SKILL.md body. Validates that SKILL.md body starts with H1 heading and
that the title in kebab-case matches the directory name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 16, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The pull request refactors the skill build pipeline and validation system. It simplifies SKILL.md parsing by removing heavy metadata processing, adds new structure validation utilities, updates AGENTS.md generation to use extracted SKILL.md body content, and reorganizes documentation for the supabase-postgres-best-practices skill.

Changes

Cohort / File(s) Summary
Configuration
.gitignore
Moved .claude/ entry from AI Agent directories block to Generated skills in dot directory block, reclassifying the ignore rule.
Build System Core
packages/skills-build/src/build.ts, packages/skills-build/src/validate.ts
Simplifies frontmatter parsing with extractSkillBody() and parseSkillBodySections() functions; removes metadata-heavy preprocessing. Adds validation utilities (extractSkillName(), titleToKebab(), validateSkillStructure()) to enforce SKILL.md structure consistency. Removes skillNameToTitle from exports.
Documentation
AGENTS.md, skills/supabase-postgres-best-practices/AGENTS.md
Updates AGENTS.md template description to reflect new body extraction approach. Restructures supabase-postgres-best-practices AGENTS.md with prioritized rule categories, expanded usage guidance, and standardized references section.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • chore: build system skill body #42: Modifies the same build.ts functions (extractSkillBody, parseSkillBodySections) and removes skillNameToTitle, with corresponding validate.ts updates using the new parsers.

Suggested labels

documentation

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/build-system-skill-body-v2

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

@Rodriguespn Rodriguespn merged commit 32142e8 into main Feb 16, 2026
3 of 4 checks passed
@Rodriguespn Rodriguespn deleted the chore/build-system-skill-body-v2 branch February 16, 2026 15:02
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