SR-6 GET /agents/skills/library + agent-creation wizard "Skills" step #874
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#874
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an operator, I want the agent-creation wizard to show me a checklist of every
skills/*.mdfile (with role-appropriate defaults pre-checked), and to seedagent_skillrows from the ones I confirm, so that creating a new agent_type starts with a working set of skills with no manual SQL.Acceptance criteria
Library endpoint
GET /agents/skills/libraryreturns{ name: string, body: string }[]readingskills/*.mdfrom disk. Server-side cache (in-memory, populated once).Wizard step
/agents/<type>/setupor equivalent) titled "Skills".skills/*.mdfilename, grouped by recommended-for-role:code/code-lead/designroles → pre-checkimplement,address-review,rebase,fix-ci(andbreakdownfor code-lead).review/design-reviewroles → pre-checkreview.artifact-style.cavemanunchecked by default; copy explains the trade-off and recommends opting in.designertype → pre-check thedesign-*-named files in place of their generic siblings:design-implementinstead ofimplement,design-reviewinstead ofreview,design-address-reviewinstead ofaddress-review,design-breakdowninstead ofbreakdown..mdin a read-only modal.<name>.md, INSERT intoagent_skill (scope='type', agent_type, name, body, updated_at)with body copied verbatim from the file. The inserted row name matches theagent_type's effective skill name — fordesigner, the row inserted fromdesign-implement.mdhasname='implement'(notname='design-implement'), so the dispatch path looks up the right body without any rewrite indirection.agent_type.apply_artifact_style = 1ifartifact-stylewas checked (default), else= 0.agent_type.apply_cavemanfrom the checkbox (recommended-off).Tests
wizard-skill-seeding.test.ts— designer pre-checks translate to plainimplement/reviewrows with design bodies; default bool values applied; non-designer types get plain bodies.library-endpoint.test.ts— endpoint returns every file inskills/; cache survives a re-call.Out of scope
/settings/agent-configSkills tab (covered in SR-10).skills/*.md— wizard does not expose them; CRUD UI handles custom skills post-creation.References
specs/skills-rework.md§Wizard flow, §API surface.apps/web/src/routes/onboarding.tsx,apps/web/src/routes/agents.$type.index.tsx.loadSkillcache:apps/server/src/domain/analytics/skill-loader.ts.