docs/pi-agent.md
How to use planning-with-files with Pi Coding Agent.
pi install npm:pi-planning-with-files
.pi/skills directory if it doesn't exist.planning-with-files skill.# Clone the repo
git clone https://github.com/OthmanAdi/planning-with-files.git
# Copy the skill
mkdir -p ~/.pi/agent/skills
cp -r planning-with-files/.pi/skills/planning-with-files .pi/skills/
Pi Agent automatically discovers skills in .pi/skills.
To use the skill, you can explicitly invoke it or let Pi discover it based on the task description.
/skill:planning-with-files
Or just ask Pi:
Use the planning-with-files skill to help me with this task.
Note: Hooks (PreToolUse, PostToolUse, Stop) are Claude Code specific and are not currently supported in Pi Agent.
python3 .pi/skills/planning-with-files/scripts/session-catchup.py .
Since hooks don't run automatically, follow the pattern:
The skill instructions will guide Pi to create these files. If not, ask:
Start by creating task_plan.md, findings.md, and progress.md using the planning-with-files templates.
Periodically ask:
Read task_plan.md to refresh our context.
After completing a phase:
Update task_plan.md to mark this phase complete.
Update progress.md with what was done.
your-project/
├── .pi/
│ └── skills/
│ └── planning-with-files/
│ ├── SKILL.md
│ ├── templates/
│ ├── scripts/
│ └── ...
├── task_plan.md
├── findings.md
├── progress.md
└── ...
If Pi doesn't seem to follow the planning rules:
SKILL.md file: Read .pi/skills/planning-with-files/SKILL.md./skill:planning-with-files command if enabled.