pi-heartbeat
Configure periodic health checks via HEARTBEAT.md and the /heartbeat command.
Review code for quality, security, performance, and maintainability. Use when reviewing PRs, auditing a codebase, or refactoring. Covers TypeScript, Node.js, infrastructure-as-code, and full-stack web apps.
$ npx -y skills add espennilsen/pi --skill code-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Review code for quality, security, performance, and maintainability. Use when reviewing PRs, auditing a codebase, or refactoring. Covers TypeScript, Node.js, infrastructure-as-code, and full-stack web apps.
name: code-review description: Review code for quality, security, performance, and maintainability. Use when reviewing PRs, auditing a codebase, or refactoring. Covers TypeScript, Node.js, infrastructure-as-code, and full-stack web apps.
Systematic code review for Espen's TypeScript/Node.js projects.
1. **Understand scope** — Read the changed files or the area under review:
# For git changes git diff --name-only HEAD~1 git diff HEAD~1 # For a specific area find src/ -name "*.ts" -newer <reference-file>
2. **Read the code** — Use the `read` tool on each file. Don't guess.
3. **Analyze against checklist** — Score each category.
4. **Report** — Use the output format below.
## Code Review: [scope] ### Summary One paragraph: what the code does, overall quality assessment. ### Issues #### 🔴 Critical - [file:line] Description and fix #### 🟡 Important - [file:line] Description and suggestion #### 🔵 Minor - [file:line] Nit or style suggestion ### What's Good - Call out well-written code, good patterns, clever solutions ### Recommendations - Prioritized list of changes, starting with most impactful
| Project Type | Key Things to Check | |---|---| | **Pi extensions** | Tool parameter schemas, error returns, signal/abort handling | | **Eleventy sites** | Template data flow, permalink structure, Tailwind purge config | | **TanStack apps** | Router setup, query keys, optimistic updates, Clerk auth guards | | **Infrastructure** | Terraform state safety, Docker layer caching, env var handling | | **SQLite** | Migration ordering, prepared statements, WAL mode, index coverage |
This repository is my Pi coding agent home directory. I keep it under version control and symlink it to ~/.pi/agent so Pi loads configuration, extensions, skills, and runtime state from here.
Configure periodic health checks via HEARTBEAT.md and the /heartbeat command.
Manage persistent memory across sessions. Use when asked to remember, recall, forget, or review what was stored. Covers long-term…
Track and manage projects with git status via dashboard and tool.
Delegate tasks to specialized subagents for parallel or sequential execution.
Audit, generate, update, and lint AGENTS.md files across all projects. Use when asked to check project context files, scaffold…