251148c3ff
## Summary - add repository-wide quality tooling and verification scaffolding, including CI workflows, pnpm workspace setup, ESLint/Prettier/markdown checks, and generated-output verification helpers - reorganize skill sources and generation flow by introducing canonical `_source` variants, generator/manifests, reusable helper abstractions, and shared web-automation/browser utilities - clean up and expand documentation so the root README flows into docs and skill docs, with clearer development, reviewer, installer, and workflow guidance ## Notable changes - docs flow and consistency cleanup across `README.md`, `docs/README.md`, and related docs - new scripts for `check`, docs verification, generated-file verification, shell portability, and safe directory replacement - refactors in Atlassian and web-automation skill runtimes to reduce duplication and centralize reusable code - changelog, development documentation, and CI surface updates ## Test Plan - [ ] `pnpm run check` - [ ] review generated/manifests and skill sync outputs - [ ] smoke-check docs flow from `README.md` to `docs/README.md` to skill docs ## Notes - this branch currently includes tracked `skills/web-automation/shared/node_modules` content that should be reviewed carefully as potentially noisy/accidental committed artifacts Co-authored-by: Stefano Fiorini <stefano.fiorini@firsthorizon.com> Reviewed-on: #1
114 lines
3.8 KiB
Markdown
114 lines
3.8 KiB
Markdown
# PI SUPERPOWERS
|
|
|
|
## Purpose
|
|
|
|
This document is only about making Obra Superpowers visible to Pi.
|
|
|
|
If you need the shared reviewer helpers (`run-review.sh`, `notify-telegram.sh`), use
|
|
[PI-COMMON-REVIEWER.md](./PI-COMMON-REVIEWER.md) instead.
|
|
|
|
## What Pi Needs
|
|
|
|
The workflow-heavy Pi skills depend on Superpowers such as:
|
|
|
|
- `brainstorming`
|
|
- `writing-plans`
|
|
- `executing-plans`
|
|
- `test-driven-development`
|
|
- `verification-before-completion`
|
|
- `finishing-a-development-branch`
|
|
- `using-git-worktrees`
|
|
|
|
Pi can discover them from shared roots like `~/.agents/skills/`, Pi-native roots like
|
|
`~/.pi/agent/skills/` or `.pi/skills/`, or settings-defined skill directories.
|
|
|
|
## Verify An Existing Install
|
|
|
|
If you think Superpowers may already be installed, check the common shared-root setup first:
|
|
|
|
```bash
|
|
test -L ~/.agents/skills/superpowers
|
|
test -f ~/.agents/skills/superpowers/brainstorming/SKILL.md
|
|
test -f ~/.agents/skills/superpowers/test-driven-development/SKILL.md
|
|
test -f ~/.agents/skills/superpowers/verification-before-completion/SKILL.md
|
|
test -f ~/.agents/skills/superpowers/finishing-a-development-branch/SKILL.md
|
|
```
|
|
|
|
If those pass, Pi can usually reuse the same install directly.
|
|
|
|
To verify a Pi-native install instead:
|
|
|
|
```bash
|
|
test -f ~/.pi/agent/skills/superpowers/brainstorming/SKILL.md || test -f .pi/skills/superpowers/brainstorming/SKILL.md
|
|
```
|
|
|
|
## Install Option 1: Reuse A Shared Skills Root
|
|
|
|
If you already have Superpowers available for another harness, the simplest Pi setup is to expose
|
|
that same tree through `~/.agents/skills/`.
|
|
|
|
Example:
|
|
|
|
```bash
|
|
mkdir -p ~/.agents/skills
|
|
ln -s ~/.codex/superpowers/skills ~/.agents/skills/superpowers
|
|
```
|
|
|
|
Re-run the verification checks above after creating the symlink.
|
|
|
|
## Install Option 2: Pi-Native Symlink Or Copy
|
|
|
|
If you do not want to use `~/.agents/skills/`, point Pi at a checked-out Superpowers tree directly.
|
|
|
|
Global Pi install:
|
|
|
|
```bash
|
|
mkdir -p ~/.pi/agent/skills
|
|
ln -s /absolute/path/to/obra/superpowers/skills ~/.pi/agent/skills/superpowers
|
|
```
|
|
|
|
Project-local Pi install:
|
|
|
|
```bash
|
|
mkdir -p .pi/skills
|
|
ln -s /absolute/path/to/obra/superpowers/skills .pi/skills/superpowers
|
|
```
|
|
|
|
If you prefer a settings-based path instead of a symlink, add it to either `~/.pi/agent/settings.json` or `.pi/settings.json`:
|
|
|
|
```json
|
|
{
|
|
"skills": [
|
|
"~/.agents/skills",
|
|
"/absolute/path/to/obra/superpowers/skills"
|
|
]
|
|
}
|
|
```
|
|
|
|
## Post-Install Verification
|
|
|
|
After any install path, verify the specific skills your workflow needs.
|
|
|
|
Planning-focused check:
|
|
|
|
```bash
|
|
test -f ~/.agents/skills/superpowers/brainstorming/SKILL.md || test -f ~/.pi/agent/skills/superpowers/brainstorming/SKILL.md || test -f .pi/skills/superpowers/brainstorming/SKILL.md
|
|
test -f ~/.agents/skills/superpowers/writing-plans/SKILL.md || test -f ~/.pi/agent/skills/superpowers/writing-plans/SKILL.md || test -f .pi/skills/superpowers/writing-plans/SKILL.md
|
|
```
|
|
|
|
Execution-focused check:
|
|
|
|
```bash
|
|
test -f ~/.agents/skills/superpowers/test-driven-development/SKILL.md || test -f ~/.pi/agent/skills/superpowers/test-driven-development/SKILL.md || test -f .pi/skills/superpowers/test-driven-development/SKILL.md
|
|
test -f ~/.agents/skills/superpowers/verification-before-completion/SKILL.md || test -f ~/.pi/agent/skills/superpowers/verification-before-completion/SKILL.md || test -f .pi/skills/superpowers/verification-before-completion/SKILL.md
|
|
test -f ~/.agents/skills/superpowers/finishing-a-development-branch/SKILL.md || test -f ~/.pi/agent/skills/superpowers/finishing-a-development-branch/SKILL.md || test -f .pi/skills/superpowers/finishing-a-development-branch/SKILL.md
|
|
```
|
|
|
|
## What This Doc Does Not Cover
|
|
|
|
- reviewer-runtime helper installation
|
|
- Telegram helper installation
|
|
- package layout or Pi package installation
|
|
|
|
Those belong in [PI-COMMON-REVIEWER.md](./PI-COMMON-REVIEWER.md) and [PI.md](./PI.md).
|