Repository navigation
feat: enhance paca skills - #647
Conversation
- Introduced a new skill for interacting with Paca project management, including detailed instructions for task management, sprint planning, and documentation. - Implemented a function to derive agent-flavor content from CLI-flavor skills, ensuring compatibility with the Paca MCP server. - Removed the legacy role policy skill implementation to streamline the skill set. - Added a new file to manage bundled skills, allowing for better organization and retrieval of skills based on the target flavor (CLI or agent).
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Skill storage refactor. The hardcoded Go raw-string catalog (
bundledskills.goandrole_policy_skill.gowith its¤-for-backtick hack) is replaced by real Markdown undercontent/, embedded with//go:embed content/*.md;catalog.gonow holds a smallskillEntrylist and loads content at init,skills.gokeepsList/IsBuiltinName, andderive.gokeeps the mechanical cli→agent transform. - Catalog. 19 skills;
pacaandpaca-dokeep hand-authored agent variants (content/<name>.agent.md),paca-setupstaysCLIOnly, everything else derives its agent flavor. paca-workflowretired, 7 skills added.paca-automation(replaces workflow — Trigger→Condition→Action graphs),paca-review(PR review on spec + standards axes),paca-triage,paca-retro,paca-feedback,paca-board,paca-team; bothpacarouters now route to all of them.- Engineering practices folded in.
paca-do(test-first, bug-diagnosis loop, PR body),paca-breakdown(tracer bullets, expand→migrate→contract,blockslinks),paca-clarify(recommended answers, glossary/decisions, standalone brief),paca-test(exact reproduction). paca-do.agent.mdgit workflow rewritten from the retiredclone_repository/push_branch/github_*tools toworkspace_inspect/workspace_prepare/git_commit/git_push/change_request_open/repo_search_code.- Docs and tests. README, ROADMAP,
docs/ai-agent/default-skills.md,docs/guides/install-skills.mdupdated;TestList_EngineeringPracticesandTestList_PacaFeatureSkillsadded.
I verified the package tests and go vet pass, compared every moved skill against base fc88f4e (only the intended edits differ; the rest are byte-identical moves), and confirmed every tool name and parameter the new skills cite exists in apps/mcp (automation enums, member roleIds, annotation status, task-link types, and the workspace/git tool contracts including CI-config and default-branch refusals). The only residual item is the stale ~/.claude/skills/paca-workflow left by older installs, which the docs already call out.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — one minor suggestion inline, plus a docs note.
Reviewed changes
Re-review of the delta since the prior pullfrog review on d55d370 (commit bc8a727, "enhance plugin skills routing and caching mechanism").
- Added plugin-declared
routesto the skills manifest (SkillsManifest.Routes/SkillRoute) with validation rejecting a route not innames, an empty / multi-line / over-length / pipe-or-backtick-bearingwhen, and a duplicate route per skill. - Injected plugin routes into the
pacarouter:ListWithRoutes/routeRows/applyRoutesrender each route as a router-table row (slash command for the cli flavor,load_skill(name: …)for the agent flavor) at the<!-- paca:plugin-routes -->marker incontent/paca.mdandcontent/paca.agent.md, and strip that marker everywhere so a router with no plugin routes is unchanged. pluginrt.ListSkillsAndRoutesreturns routes only for plugin skills actually served in the same response, so the router never names a skill that is disabled, unreadable, or a bundled-name collision.GET /api/v1/skillsnow serves plugin skills and router rows for both flavors; the agent flavor no longer excludes plugin skills (that exclusion existed forservices/ai-agent's process-lifetime cache, andai-agentis gone).services/agent-runnernow TTL-caches the fetched skill set (30s) and serves the last good set when a refresh fails, so a plugin install / enable / disable reaches a following conversation without an API call per conversation.- Docs (
default-skills.md,skills-plugin-system.md) and tests (entity_test,bundledskills_test,plugin/skills_test,skills_handler_test) updated.
I verified the affected packages build and their tests pass (bundledskills, platform/domain plugin, HTTP handler, agent-runner bundledskills), and confirmed services/agent-runner is the only consumer of ?target=agent.
ℹ️ Stale "agent-runner doesn't consume skills" docs are now contradicted by this change
The new sections in this commit describe agent-runner consuming the default/plugin skill set, but neighboring lines in the same files (and one web comment) still assert the opposite, so a reader gets contradictory guidance about whether plugin skills reach an in-product agent.
Technical details
# Reconcile stale "no agent-runner consumer" documentation
## Affected sites
- `docs/ai-agent/default-skills.md:3-14` — "Known gap" notice says agent-runner does not merge Paca's default skill set or plugin skills; contradicted by the new section at `:65-67` and by the actual wiring (`services/agent-runner/cmd/agent-runner/main.go:139`, `internal/handler/handler.go:173`).
- `docs/plugins/skills-plugin-system.md:123` — "no longer has a runtime consumer on the `agent-runner` side … since nothing merges plugin skills into a conversation there", and `:142` ("no `agent-runner` equivalent exists yet"); contradicted by the new `routes` paragraph at `:88`.
- `apps/web/src/lib/agent-api.ts:126-129` — comment says `?target=agent` would omit plugin skills; no longer true.
## Required outcome
- Documentation and the web comment accurately reflect that `GET /api/v1/skills?target=agent` serves plugin skills and router rows to agent-runner on a short TTL.deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
…ior in agent runner
There was a problem hiding this comment.
ℹ️ No critical issues — one minor suggestion inline.
Reviewed changes
Incremental re-review of the delta since the prior pullfrog review on bc8a727 (commit 6ea7afd, "enhance documentation for agent skills and update caching behavior in agent runner").
- Reconciled the "agent-runner doesn't consume skills" docs with the behavior introduced in
bc8a727:docs/ai-agent/default-skills.mdanddocs/plugins/skills-plugin-system.mdnow describe the per-conversationGET /api/v1/skills?target=agentfetch (30s cache, last good set on failure), and theSystemSkillcomment inapps/web/src/lib/agent-api.tsno longer claims?target=agentomits plugin skills — covering all three sites the prior review flagged. - Restarted the agent-runner skill-cache TTL on a failed refresh (
services/agent-runner/internal/bundledskills/client.go:c.fetchedAt = c.now()), so a sustained API outage costs one fetch attempt percacheTTLrather than one per conversation. Retired the prior inline thread. - Added
TestClient_Load_RefetchesAfterTTLAndServesStaleOnFailurecovering TTL expiry → refetch, stale-on-failure, and the TTL restart.
The remaining-gap notices in both docs (no per-trigger-type skills, no keyword-triggered selection) still match internal/executor — verified against handler.go:174 (cfg.Skills = append(bundled, cfg.Skills...)) and executor/skills.go.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
…ng concurrent fetch handling
There was a problem hiding this comment.
ℹ️ No critical issues — one minor suggestion inline.
Reviewed changes
Incremental re-review of the delta since the prior pullfrog review on 6ea7afd (commit ef771464, "enhance skill management by removing retired skills and improving concurrent fetch handling").
- Retired
paca-workflowcleanup in the installer.scripts/install-paca-skills.shnow deletes a stalepaca-workflow/SKILL.mddirectory from each global install target once the skills fetch succeeds, so an older install stops shipping the retired/paca-workflowcommand. - Collapsed concurrent agent-runner skill refreshes.
services/agent-runner/internal/bundledskills/client.gosplitLoadinto afreshcache-hit path and arefreshthat runs under asingleflight.Group; the fetch is detached from any single caller's context (context.WithoutCancelplus the client timeout), and both paths return a copied slice so callers can't mutate the cache. singleflightpromoted to a direct dependency inservices/agent-runner/go.mod.- Route lookup map.
services/api/internal/platform/plugin/skills.goprecomputes a per-pluginwhenBySkillmap instead of scanning the manifest routes for every name; output order is unchanged. - New guard test.
TestList_AgentFlavorHasNoCLIOnlyTextasserts no agent-flavor skill leaks acompatibility:line or the "not connected" fallback block, catching a silentderiveAgentContentno-op.
I traced the singleflight path (cancel-detached fetch, stale-on-failure TTL restart, clone-on-return for both the cache-hit and singleflight results) and found no correctness or race issue. go test passes for agent-runner bundledskills and api bundledskills/plugin, and shellcheck --shell=bash scripts/install-paca-skills.sh is clean.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Incremental re-review of the delta since the prior pullfrog review on ef771464 (commit 5a1c151, "remove artifacts of retired paca-workflow skill and improve script cleanup").
- Completed the retired-skill cleanup.
scripts/install-paca-skills.shnow also removes the Gemini legacy TOML command (~/.gemini/commands/paca-workflow.toml) and, when in a git working tree, the project-scoped Cursor copy (<project>/.cursor/skills/paca-workflow/) — closing the one gap the prior review flagged. That thread is retired. - Fixed import grouping.
golang.org/x/sync/singleflightmoved out of the stdlib import block into its own group inservices/agent-runner/internal/bundledskills/client.go; no behavior change.
gofmt -l is clean on the Go file, and shellcheck --shell=bash plus bash -n are clean on the installer. All prior pullfrog threads on this PR are now resolved.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

Summary
Refactors Paca's bundled skill set and rebuilds it around Paca's own features, following the practices in mattpocock/skills (engineering): interview before building, work in thin vertical slices, verify, and leave a written record.
Changes
bundledskillsrefactor (services/api/internal/platform/bundledskills)¤convention for role policy) into plain Markdown undercontent/<name>.md, embedded withgo:embed.catalog.gois a one-line-per-skill table;skills.goholdsList/IsBuiltinName;derive.goholds the CLI→agent derivation. Onlypacaandpaca-dohave a hand-written<name>.agent.md.List()output for both flavors was diffed before/after and is byte-identical.Improved existing skills
paca-do: test-first vertical slices for code; feedback-loop-first diagnosis for non-obvious bugs; current Git tools (workspace_prepare,git_commit,git_push,change_request_open); PR body = summary / evidence / risk.paca-breakdown: tracer-bullet slices; dependencies recorded as realblockstask links.paca-clarify: recommended answer per question, verify before asking, glossary/decision docs, agent-ready briefs.paca-test: failures record exact reproductions.pacarouter: routes to the new skills; usessearch_tasks/search_docs.New skills built on Paca features
paca-review(PR review on spec + standards axes),paca-triage,paca-retro,paca-feedback(browser-extension page comments → tasks),paca-board(types, statuses, custom fields, views),paca-team(members, roles, permissions),paca-automation.Breaking:
paca-workflow→paca-automationpaca-workflowdocumented the removedget_workflow/create_workflowtools. The MCP server now exposesget/create/update/delete_automation, so the skill was rewritten for Trigger → Condition → Action graphs under a new name. Machines that installed earlier keep a stale~/.claude/skills/paca-workflowuntil removed.Docs and tests
README.md,ROADMAP.md,docs/guides/install-skills.md,docs/ai-agent/default-skills.md(including the new "adding a skill" flow).TestList_EngineeringPractices,TestList_PacaFeatureSkills.Also on this branch (unrelated to skills)
conversations.read), with docs/tests (domain/agent,service/agent,apps/mcpconversation tools).pane-resize-handle,pane-width, sidebar/roadmap wiring, andshared.jsonstrings in all 9 locales.Testing
go testpasses forbundledskills,platform/plugin,service/agent, and the HTTP handlers.apps/mcp/src/tools.Notes
docs/ai-agent/default-skills.md,agent-runnerdoesn't consume the bundled skills yet, so these changes reach CLI installs (install-paca-skills.sh) and ACP-bridge agents once the API is redeployed.