feat(skills): ship 5 distributable agent skills for library users#110
Merged
feat(skills): ship 5 distributable agent skills for library users#110
Conversation
Adapted from internal .claude/skills/define-errors/ with generic domains (HttpError, DbError, UserError, FileError) replacing project-specific refs.
…atterns skills Four distributable skills adapted from internal .claude/skills/ with all project-specific references replaced by generic domains (UserService, HttpClient, DbError). Spec updated with Phase 1-2 completion.
Added npx skills add wellcrafted-dev/wellcrafted install instructions for library users. Kept existing EpicenterHQ/epicenter section for contributors. All 5 skills verified with npx skills add . --list and test install.
Adds skills/ to the structure description and explains the two-tier skill system (internal .claude/skills/ for contributors, distributable skills/ for library users).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds 5 distributable agent skills in
skills/so that any project using wellcrafted can teach their AI coding agent how to use it correctly. A developer whonpm install wellcraftedand then runsnpx skills add wellcrafted-dev/wellcraftedgets patterns, anti-patterns, and API conventions installed directly into their agent's context.The library had 20 internal skills in
.claude/skills/that taught agents how to use wellcrafted — but they were locked to this repo, full of Whispering-specific references (RecorderError, DeviceStreamError, FfmpegError, Tauri platform detection). A developer's agent had no idea how to use defineErrors, would guess at patterns, produceas anycasts, and create class-based errors instead of variant factories. These 5 skills fix that.# What a wellcrafted user runs npx skills add wellcrafted-dev/wellcraftedHow each skill was built
Every skill was adapted from internal
.claude/skills/sources. The adaptation rule was strict: every project-specific reference gets replaced with a generic domain, every import path useswellcrafted/*, every anti-pattern gets a WRONG/CORRECT code block.define-errors.claude/skills/define-errors/result-types.claude/skills/error-handling/query-factories.claude/skills/query-layer/branded-types.claude/skills/typescript/branded sectionpatternsVerified clean with
grep -ri "whispering\|RecorderError\|DeviceStream\|FfmpegError\|Tauri\|Elysia" skills/— zero hits.What else changed
README.md gets a new "AI Agent Skills" section before "Development Setup" — tells library users how to install skills. The existing EpicenterHQ section for contributors stays untouched.
AGENTS.md updated to document the two-tier skill system:
skills/for library users,.claude/skills/for contributors.Spec at
specs/20260311T124200-distributable-agent-skills.md— all items checked off, review section added. Committed alongside code so the git history shows what was planned vs. what was built.Why this structure
npx skillsdiscovers SKILL.md files inskills/at repo root — no registry, no approval process, just push to GitHub. The tool scans multiple directories (skills/, root, curated/skills/, agent-specific dirs), so bothskills/and.claude/skills/are found. A user runningnpx skills add wellcrafted-dev/wellcraftedsees all 5 distributable skills and can pick which ones to install.The skills intentionally do NOT go in the npm package (not in
filesarray). They're distributed via GitHub becausenpx skillspulls from repos, not npm. This means updating a skill is just a push to main — no version bump needed.Why the skills are self-contained
Each skill is a standalone document with all patterns and anti-patterns inline. The alternative was linking back to README.md, but that means the agent would need to fetch external docs at runtime. Self-contained skills load instantly and work offline. There's some content overlap with the README, but the skills go deeper on patterns and anti-patterns than the README does — the README tells the high-level story, skills teach the detailed craft.