Commit Graph

9 Commits

Author SHA1 Message Date
Pedro Rodrigues
fff97dce2e chore: ignore .claude directory
Remove .claude from git tracking and add to .gitignore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 13:55:11 +00:00
Pedro Rodrigues
8248dcbcd9 fix: include subdirectory in reference paths in AGENTS.md
The build system now correctly preserves subdirectory paths when
generating the Available References section. For example, files in
references/db/ are now listed as references/db/file.md instead of
just references/file.md.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 13:40:52 +00:00
Pedro Rodrigues
1718f83632 Revert "fix: remove CLAUDE.md symlink generation from build"
This reverts commit c07c234601.
2026-01-30 13:40:52 +00:00
Pedro Rodrigues
bec143f6ce fix: remove CLAUDE.md symlink generation from build
The CLAUDE.md symlink causes installation errors when using
`npx skills add` as it tries to copy AGENTS.md to itself.

- Remove createClaudeSymlink function from build.ts
- Remove claudeSymlink from SkillPaths interface
- Remove CLAUDE.md references from AGENTS.md structure documentation
- Delete existing CLAUDE.md symlink from skills directory

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 13:40:26 +00:00
Pedro Rodrigues
22e466937a fix: require reference files at root of references/ directory (#32)
Remove support for nested subdirectories in references/.
All markdown reference files must now be placed directly in
the references/ directory (e.g., references/auth-signup.md).

- Replace getMarkdownFilesRecursive with getMarkdownFiles (flat)
- Simplify parseAllSections to only read root _sections.md
- Update getReferenceFiles to skip subdirectories
- Keep deprecated getMarkdownFilesRecursive alias for compatibility

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 13:39:59 +00:00
Pedro Rodrigues
a3b815155c reduxe the agents.md file size (#20) 2026-01-27 21:38:29 +00:00
Pedro Rodrigues
5da9a5ee37 feat: add subdirectory support for reference files (#18)
- Add getMarkdownFilesRecursive() for recursive file scanning
- Add parseAllSections() to parse _sections.md from subdirectories
- Add parseSectionsFromFile() helper function
- Update buildSkill() and validateSkill() to use new functions
- Export new functions for use by validate.ts

This allows organizing reference files in product-specific subdirectories
(e.g., references/db/ for database files) while keeping _sections.md in
each subdirectory.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:34:52 +00:00
Pedro Rodrigues
f421451c79 chore: comply with agent skills open stardard (#14) 2026-01-26 15:22:35 +00:00
Pedro Rodrigues
bbde7ff5f8 refactor: generic skills build system with auto-discovery (#8)
* refactor: generic skills build system with auto-discovery

- Rename postgres-best-practices-build → skills-build
- Add auto-discovery: scans skills/ for subdirectories with metadata.json
- Build/validate all skills or specific skill with -- argument
- Update root AGENTS.md and CONTRIBUTING.md with new structure
- No configuration needed to add new skills

Usage:
  npm run build                    # Build all skills
  npm run build -- skill-name      # Build specific skill
  npm run validate                 # Validate all skills

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

* fix ci

* more generic impact levels

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 15:56:11 +00:00