Repository navigation
Can dubbogo/skills be used in pc-mate? Compatibility analysis of PR #2921 #2970
Replies: 1 comment
Correction / refinement to the analysis aboveA follow-up line-by-line review confirms the main conclusion stands: runtime invocation is blocked, and text-level reuse is viable. However, the "feasible today" section and several citations need correction. Verified against PR #2921 head P1 — implementation-affecting corrections
P2 — citation fixes
P3 — precision
Revised feasible-today map
The main verdict is unchanged: no runtime skill execution in pc-mate, no |
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
No —
dubbogo/skillscannot be plugged intopc-mateas runtime-invokable skills without reopening the product boundary set by PR #2921 and Discussion #2922. Yes — the judgment criteria inside those skills can be reused today as plain text, with zero Rust changes.Analysis basis: PR #2921 (merged, head
c59dc78f4ab70fa5bc69376b3ebffafb57808d81),dubbogo/skillsv0.2.1 (d7d6ede), and its three skillstask-issue,py2rust,pr-review.Why runtime invocation is blocked
1. The runners remove the tools skills need
src/runner/claude.rs:85-94—--disallowedTools mcp__*,--strict-mcp-config, empty MCP config,--setting-sources "", and read-only--tools Read,Grep,Glob; test at:172-188locks it insrc/runner/codex.rs:135-144—--ignore-user-config,--ignore-rules,--ephemeral,--sandbox read-onlysrc/runner/opencode.rs:43-55— bails on read-only workpc-mate run --writepath existsThe controller also observes, not just requests, read-only behavior:
src/runner/mod.rs:105-149takes agit status --porcelain=v1 --untracked-files=allbaseline and compares it after the run, discarding the answer if anything changed. Even if tool flags were widened,py2rustbuild artifacts ortask-issuedraft files would fail the run.2. There is no skill invocation seam
AgentRun(src/runner/mod.rs:30-38) carries onlyprompt / cwd / env / model / read_only / timeout; there is no skill-selection field.AgentConfig(src/config.rs:47-59) has no skills field, and the relevant config structs usedeny_unknown_fields— addingskills:to settings.yaml is a parse failure, not a silent no-op.src/triage.rs:29-119andsrc/workflow.rs:856-945. A grep forskill|技能across the fetched pc-mate source returned zero hits. There is no$pr-review,$task-issueor$py2rusttoken to invoke.agent.extraArgs(settings.example.yaml:26) is passed through to the CLIs, but using it to widen tools or sandbox would bypass the gates above and still would not create a skill invocation path.3. The authorization models point in opposite directions
The skills assume the host may perform writes under user authorization:
pr-review/SKILL.md:41-43publishes inline comments by default;pr-review/references/protocol/00-scope.md§0.3 includes reading GitHub, isolated verification and posting comments.task-issuepublishes issues after approval and its dual-agent mode needs independent context, snapshot handoff andCONTINUE/CORRECTcontrol.py2rustneeds a writable task directory, build output and wheel installation.pc-mate deliberately removes the same capabilities:
src/config.rs:71-99and the test at:749-765excludeGH_TOKEN,GITHUB_TOKEN,LARK_APP_SECRETandFEISHU_TOKENfrom the agent environment.README.md:41-52and:74-77route every external write through a pending action that a maintainer approves in a private Feishu group, bound to target, exact text hash and case version.README.md:36-37states the bot never edits code, commits, pushes, opens PRs or merges.This matches the Decision in #2922: M1 has no Experience/Skill reuse, and even M2 GitHub writes require a per-repo App, short-lived tokens and human approval.
What is feasible today: text-criteria reuse (P1, zero code change)
Two existing injection points are enough:
triage.guidelines— declared insrc/config.rs:267, injected atsrc/triage.rs:114-118. Best for classification, severity and evidence requirements.AGENTS.md— explicitly read bysrc/workflow.rs:856-858, and the triage prompt asks the agent to read it. Best for long-lived rules.Concrete material worth extracting:
dubbogo/skillspr-review/references/protocol/00-scope.md§0.2/§0.3AGENTS.mdpr-review/references/protocol/04-findings.mdtriage.guidelinespr-review/references/projects/oceanbase-powercontext.mdAGENTS.mdtask-issue/references/evidence.mdtriage.guidelinespy2rust/references/reporting.mdAGENTS.md, only for Python-to-Rust migration checkoutsDo not copy whole skill packs:
triage.guidelinesis a single free-text field with no tiered loading ormax_byteslimit, so only distilled criteria should be injected. Keep attribution perdubbogo/skills/docs/provenance.md; thepy2rustweb-service subset isApache-2.0 AND MIT, so that notice must travel with the text. Both projects are otherwise Apache-2.0.Important correction: "managed Skill" will not be recalled by pc-mate
src/powercontext.rs:102-120builds the/v1/context/preparerequest with exactly these families:document(limit 3, fts),memory(2),topic-memory(2),experience(1). There is noskillfamily. Therefore, even if these rules are stored as PowerContext managed Skills, pc-mate will not retrieve them through context prepare.To make them visible, they must be either imported as documents through the knowledge-base plugin, or promoted into Experience candidates (current assembly limit: 1). This is consistent with
docs/rfc-conformance.md, which lists knowledge-base import as out of scope for M1.Per-skill verdict
pr-reviewtask-issuecase.rs/outbox.rsAGENTS.mdrule material; keep pc-mate's own state machinepy2rustIf executable skills are really wanted
That requires a new RFC, not a config toggle. A boundary-preserving version would add an explicit field such as
agent.skillContextRefs: Vec<String>pointing only to allowlisted paths inside the checkout, then have Rust read and truncate those texts into the existing prompts — still no$skillcall and no Skill/Bash tools. True skill execution (writing code, publishing comments) would mean reopening RFC 2919's boundary and defining an M3 writable runner, credential isolation and approval mapping.Verification notes
c59dc78f4ab70fa5bc69376b3ebffafb57808d81.dubbogo/skillswas read locally at v0.2.1 (d7d6ede), Apache-2.0.cargo test, and I did not install the skills into a real Claude/Codex host to verify CLI auto-discovery — in particular, whether Codex.agents/skillsdiscovery survives--ignore-user-configremains unverified. The tool-whitelist and hardcoded-prompt evidence is sufficient for the conclusion above.All reactions