Skip to content

chore: build system skill body#42

Merged
Rodriguespn merged 3 commits intomainfrom
feature/build-system-skill-body
Feb 13, 2026
Merged

chore: build system skill body#42
Rodriguespn merged 3 commits intomainfrom
feature/build-system-skill-body

Conversation

@Rodriguespn
Copy link
Collaborator

@Rodriguespn Rodriguespn commented Feb 13, 2026

Summary by CodeRabbit

  • Documentation

    • Simplified generated guide structure, removing metadata-driven reference sections
    • Redesigned Supabase best practices guide with new prioritized categorization scheme and refined usage flow
    • Enhanced skill metadata validation for consistency
  • Refactor

    • Updated skill parsing and guide generation approach

Rodriguespn and others added 3 commits February 13, 2026 16:54
… 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>
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>
…e 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>
@Rodriguespn Rodriguespn self-assigned this Feb 13, 2026
@Rodriguespn Rodriguespn added the documentation Improvements or additions to documentation label Feb 13, 2026
@Rodriguespn Rodriguespn merged commit c6f5a2b into main Feb 13, 2026
3 of 4 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR refactors SKILL.md parsing to extract and process body content instead of frontmatter metadata. It removes frontmatter-based title generation and metadata-driven AGENTS.md sections, and introduces skill structure validation that checks consistency between frontmatter, directory names, and body content.

Changes

Cohort / File(s) Summary
Build system refactoring
packages/skills-build/src/build.ts
Removed frontmatter extraction and metadata-driven section generation. Added extractSkillBody() to isolate body content and parseSkillBodySections() to extract optional H1 title. AGENTS.md generation now includes only title, Structure/Usage blocks, and remaining body content. Replaced createClaudeSymlink() with generic createSymlink(). Removed skillNameToTitle export.
Validation enhancements
packages/skills-build/src/validate.ts
Added skill structure validation with new helpers: extractSkillName() reads frontmatter, titleToKebab() converts titles to kebab-case, and validateSkillStructure() checks that name field exists, matches directory, and body starts with H1 matching directory name. Enhanced validateSkill() to perform structure validation early and abort if name errors exist.
Documentation updates
AGENTS.md, skills/supabase-postgres-best-practices/AGENTS.md
Updated AGENTS.md documentation string from "navigation guide" to "SKILL.md body (frontmatter stripped)". Completely rewrote supabase skill AGENTS.md content from enumeration-based to prioritized rule-based guide with simplified reference structure and new usage patterns.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

✨ 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 feature/build-system-skill-body

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

@Rodriguespn Rodriguespn deleted the feature/build-system-skill-body branch February 13, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant