cua icon indicating copy to clipboard operation
cua copied to clipboard

[Feature]: support pi via skills

Open tyxlb opened this issue 2 months ago • 4 comments

Primary area

CLI

User problem

cua-driver skills doesn't support pi coding agent. I need to unpack to ~\.pi\agent\skills\ manually.

Desired outcome

cua-driver skills install will unpack skills to ~\.pi\agent\skills\ automatically

Current workaround

No response

Affected components and platforms

No response

Alternatives and prior art

No response

Implementation ideas

edit https://github.com/trycua/cua/blob/main/libs/cua-driver/rust/crates/cua-driver/src/skills.rs

Submission checks

  • [x] I searched for existing issues, RFCs, and active pull requests.
  • [x] I reviewed the RFC criteria and used the RFC form instead when this requires a public contract or architectural decision.
  • [x] This public request contains no credentials, private data, sensitive screenshots, or vulnerability details.

tyxlb avatar Sep 23 '26 02:09 tyxlb

I can take this. I’m keeping the first slice narrow: add Pi as a managed skill target, use Pi’s own ~/.pi/agent directory as the install marker, add focused detection/linking coverage, and update the supported-client docs. No changes to MCP config, skill-pack contents, or other agents’ behavior. Existing no-clobber behavior stays shared.

One refinement after checking Pi’s current discovery contract: Pi reads both ~/.pi/agent/skills and ~/.agents/skills, and duplicate names warn/keep the first. Cua already manages ~/.agents/skills for Codex, so the draft deliberately reuses that shared Pi-supported location. A Pi-only install can create it from the ~/.pi/agent marker; Pi+Codex converge on one cua-driver link instead of generating duplicate discovery.

Draft implementation: #4049.

kvnloo avatar Sep 23 '26 18:09 kvnloo

@tyxlb I tightened #4049 after a broader test-quality pass. The branch now has a path-level regression proving a Pi-only marker creates the shared ~/.agents/skills/cua-driver link and a later Codex pass reuses that same link rather than making a duplicate.

The one thing I cannot prove from the Rust tests is the final Pi-owned boundary: does your Pi install actually discover/load the shared global skill path?

If you still have the setup from this issue, could you try exact head 1ab738aa9e333b1fce7aa9f1647f46a206914c9d (PR #4049) with:

  1. Pi installed / ~/.pi/agent present;
  2. temporarily no ~/.agents/skills;
  3. run cua-driver skills install;
  4. confirm the link appears at ~/.agents/skills/cua-driver;
  5. start/reload Pi and confirm it actually discovers the cua-driver skill;
  6. if you also use Codex, confirm Pi+Codex show one shared skill rather than a duplicate-name warning.

Raw terminal output is enough. This is now the main acceptance gap rather than another path-constant test.

kvnloo avatar Sep 26 '26 00:09 kvnloo

Confirmed on Pi 0.84.4 (Windows): Pi discovers skills in both ~/.pi/agent/skills/ and ~/.agents/skills/. (I verified discovery with a hand-placed skill; I haven't run cua-driver skills install at 1ab738a.) @kvnloo

tyxlb avatar Sep 27 '26 01:09 tyxlb

tysm @tyxlb

kvnloo avatar Sep 27 '26 01:09 kvnloo