code-mate-pi
Helps your agent analyze and implement tasks in code repositories. It's useful for when you want the agent to work on specific parts of a project.
What it does
This agent runs a tool called 'Pi' to analyze or implement specific tasks in your code. It does this automatically, without needing continuous interaction.
When to use it
- ✓When you want the AI to analyze a piece of code to find issues.
- ✓When you need the AI to implement a specific feature in your project.
- ✓When you want to automate a repetitive code analysis task.
Example of what to ask your AI
“Analyze this file and tell me if there are any syntax errors.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
It runs the 'Pi' program in the background, setting it up to analyze your code and return results in a computer-readable format (JSON). It checks if 'Pi' is installed and if access settings are correct before starting.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add CherryHQ/cherry-studio --skill code-mate-piOr download just the file:
curl -L https://raw.githubusercontent.com/CherryHQ/cherry-studio/main/resources/code-cli-skills/code-mate-pi/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Pi
Run
- Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
- Check availability with
command -v pi. If it is missing, stop and ask the user to install Pi in Code Mate. - Run one sessionless task:
pi --mode json --no-session "<prompt>"
Pass the prompt as one quoted argument. Parse stdout as JSONL and inspect error events; Pi can report model or tool failure in the event stream, so process exit alone is insufficient. Never start interactive Pi or /login.
Authentication And Permissions
If Pi reports missing login, model, provider, or API configuration, stop and ask the user to configure Pi in Code Mate. Never request, read, print, or copy credentials.
Pi has no tool-approval prompt and normally exposes read, write, edit, and Bash tools. For analysis, append --tools read,grep,find,ls. Include write, edit, or Bash only when the user explicitly requested workspace changes, and keep the tool list and working directory as narrow as possible.
Example: run a read-only diagnosis with --tools read,grep,find,ls, then use the final JSONL message only if no error event occurred.
FAQ
What is 'Pi'?
'Pi' is a program that helps analyze and work with code automatically.
What does 'non-interactive' mean?
It means the agent does the work by itself, without asking for your permission or confirmation at each step.
What happens if 'Pi' is not installed?
The agent will let you know that 'Pi' needs to be installed for it to work.
Details
Original description by the author
Runs Pi non-interactively and parses its JSON event stream for repository tasks. Use when the user asks to delegate a bounded analysis or implementation task to Pi.
repo: CherryHQ/cherry-studio
Popularity
- GitHub stars
- 53k
- Ranking position
- #1813
- License
- AGPL-3.0
- Updated
- 10/16/2026
Comments
- …
More skills from this repository
code-mate-antigravity
Lets your agent analyze code and perform programming tasks. It's useful for reviewing or improving existing code.
CherryHQ/cherry-studio
code-mate-claude-code
Helps your agent analyze and implement code. It's useful for software development tasks and code reviews.
CherryHQ/cherry-studio
code-mate-codex
Lets your agent analyze and implement code. It's useful for getting coding results or comparing with other tools.
CherryHQ/cherry-studio
code-mate-deepseek-harness
Helps your agent analyze and implement code in repositories. It's useful for bounded development tasks and code analysis.
CherryHQ/cherry-studio
Similar skills
benchmark-optimization-loop
Has your agent improve something's speed in a measured way. It tests multiple versions and chooses the fastest one that still works correctly.
affaan-m/ECC
change-impact
Helps your agent analyze the impact of code changes before making them. It compares the planned vs. actual results afterward, covering paths, data, tests, and documentation. Useful for risky or system-wide changes.
affaan-m/ECC
click-path-audit
Lets your agent trace all user buttons and interactions to find bugs. It finds issues where functions seem to work alone but fail together. Useful when bugs persist even after debugging.
affaan-m/ECC