CodePinion Labs/codepinion_skill Public

A stdlib-only Python CLI (cp.py) that lets Claude Code, Codex, and Gemini CLI read and update a user’s CodePinion sprints, tasks, goals, and dependencies. Authentication uses a browser-approval flow, so no token ever touches the chat or shell history. The CLI refuses any write targeting a repository other than the one resolved from the current directory, and every create/update requires explicit confirmation naming the target environment. The graph command renders a repository’s entire plan—including sprints, epics, tasks, goals, and dependency edges—in a single call.

1 branch
codepinion_skill
README

CodePinion for Claude Code

Connect Claude Code to your CodePinion account. Ask "what should I work on?", have Claude pull up your sprint, start work on a task, and log progress back — without pasting IDs or context by hand.

Works in the Claude Code CLI, the desktop app, and the IDE extensions.

Install

/plugin marketplace add ssh://git@codepinion.co.ke:2223/codepinion-labs/codepinion_skill.git
/plugin install codepinion

Then sign in — this opens your browser:

python3 ~/.claude/plugins/codepinion/skills/codepinion/scripts/cp.py login --env prod

You'll see a short code, approve it in a browser you're already signed into, and that's it. Ask Claude "what am I working on in CodePinion?" to check it took.

Manual install

No plugin system? Copy the skill into your personal skills directory:

git clone ssh://git@codepinion.co.ke:2223/codepinion-labs/codepinion_skill.git
cp -r codepinion_skill/skills/codepinion ~/.claude/skills/
python3 ~/.claude/skills/codepinion/scripts/cp.py login --env prod

How signing in works

There's no token to copy and paste. The CLI asks CodePinion for a short code, you approve that code in a browser that's already signed in to your account, and the token is delivered straight to your machine.

That matters for two reasons. Approving in a signed-in browser proves the account is yours — that session already passed CodePinion's email two-factor, so the approval inherits it. And because nothing is pasted, no token ever lands in your shell history, your terminal scrollback, or a chat transcript.

The approval screen shows which machine asked and from what IP, so a request you didn't start is easy to spot and deny.

Tokens are stored at ~/.codepinion/claude-code.json, readable only by you (0600). Revoke any of them any time under Settings → API tokens.

Step-up approval for production

Where your CodePinion deployment enables it, reading is always free but changing something on production needs a browser approval from the last 12 hours. If Claude hits that, it stops and asks you to run:

cp.py elevate --env prod

One approval, then it carries on.

The full guide, with each environment's addresses filled in, is in CodePinion's documentation: CLI and Claude Code plugin and Device sign-in and approval.

Environments

prod, playground and local are built in, and you can be signed in to all of them at once — each keeps its own token.

cp.py env                    # who's signed in where, and which is active
cp.py env use playground     # switch
cp.py tasks --sprint 4 --env playground   # or just this one command

Claude always tells you which environment an answer came from, and won't switch on its own.

Custom deployment:

cp.py login --env staging --api-url https://api.example.com --web-url https://example.com

What Claude can do

Read your repositories, sprints, epics, tasks and goals; create and update tasks, goals and sprints; start and stop work on a task; and see and edit the dependencies between tasks.

cp.py graph renders a repository's live sprints as a tree — sprints, epics, tasks, their goals, and every "waits on" edge — so Claude can see the shape of the work in one call instead of guessing from a flat list.

It matches the repo you're sitting in to the right CodePinion project automatically, using the same rules as the VS Code extension. Writes are refused outright if they target a different project than the directory you're in — so a stale or misremembered task id cannot quietly change someone else's board. Pin the match with cp.py link --save.

Claude asks before it changes anything, and names the environment when it does.

Full command list: skills/codepinion/reference.md.

Other CLIs

The CLI itself (cp.py) is a plain stdlib script — nothing about it depends on Claude Code. What's Claude Code-specific is the auto-discovery: SKILL.md's description is what makes Claude Code find and load it without you doing anything. Codex CLI, Gemini CLI and Antigravity have their own, different mechanisms for that, wired up here too:

Codex CLI gets a native codepinion skill for on-demand account workflows, plus a short global AGENTS.md pointer. Install with:

codex/install.sh

This copies cp.py and the reference doc to ~/.codex/codepinion/, installs the skill under ~/.codex/skills/codepinion/, and adds a short, clearly delimited block to ~/.codex/AGENTS.md. It respects CODEX_HOME, is safe to re-run, replaces only its own block, and refuses malformed or duplicate markers without changing the file. Restart Codex and invoke the skill with $codepinion. For a custom Codex home:

CODEX_HOME="$HOME/.codex-work" codex/install.sh

Gemini CLI has a real extension system — a manifest, its own context file, and an install path Gemini CLI manages itself. Install with:

gemini-extension/install.sh

This assembles the extension (copying in the current cp.py) and runs gemini extensions install for you. Confirm with gemini extensions list.

Antigravity uses a plugin layout that happens to be the same shape as Claude Code's — a manifest plus skills/<name>/SKILL.md — so it bundles the very same SKILL.md, and auto-discovery works for the same reason it does in Claude Code. Install with:

antigravity/install.sh

This assembles the plugin, runs agy plugin validate on it so a bad manifest is a clear error rather than a plugin that installs and silently does nothing, then agy plugin install. Confirm with agy plugin list.

agy is already on the PATH in a CodePinion workspace terminal, so there is nothing to install first there. On your own machine, get it from curl -fsSL https://antigravity.google/cli/install.sh | bash.

The manifest is deliberately minimal — just name and description. agy plugin validate tolerates the extra fields the Claude and Gemini manifests carry (version, author, homepage), but agy plugin list does not surface any of them, so they would be decoration with a chance of tripping a stricter schema later.

Every installer here pulls from the one canonical copy under skills/codepinion/scripts/ — there is no separate copy to keep in sync by hand.

Requirements

Python 3.9+ — standard library only, nothing to install. A CodePinion account, and an API token scope of api:access (the browser flow sets this up for you).

Development

python3 skills/codepinion/scripts/test_cp.py          # the CLI: no network, no CodePinion instance
python3 -m unittest discover -s evals -p "test_score_trace.py"   # the eval scorer
python3 tools/sync_variants.py                        # refresh the per-agent copies after any edit

Edit only skills/codepinion/; tools/sync_variants.py --check fails CI if a copy has drifted. evals/README.md explains how to score a real agent's behaviour against the planning rules.

License

Licensed under the Apache License, Version 2.0. See NOTICE. The Apache license covers this code; it does not grant the right to use the CodePinion name or logo.

About

A stdlib-only Python CLI (cp.py) that lets Claude Code, Codex, and Gemini CLI read and update a user’s CodePinion sprints, tasks, goals, and dependencies. Authentication uses a browser-approval flow, so no token ever touches the chat or shell history. The CLI refuses any write targeting a repository other than the one resolved from the current directory, and every create/update requires explicit confirmation naming the target environment. The graph command renders a repository’s entire plan—including sprints, epics, tasks, goals, and dependency edges—in a single call.

1 branch
Apache-2.0
Updated about 20 hours ago
Contributors

Languages

Python98.7%
Shell1.3%

Clone

https://api.codepinion.co.ke/git/codepinion-labs/codepinion_skill.git
git clone https://api.codepinion.co.ke/git/codepinion-labs/codepinion_skill.git