Repository: https://github.com/ironsheep/P2-Knowledge-Base Version: 3.2
Choose based on your SHELL, not the user's OS:
- If you can run
bashandcurl→ Use Bash commands (even on Windows with WSL/Git Bash) - If you're in native PowerShell on Windows → Use PowerShell commands
Most AI environments use Bash - when in doubt, try Bash first.
mkdir -p .p2kb-cache && \
curl -sS https://raw.githubusercontent.com/ironsheep/P2-Knowledge-Base/main/engineering/tools/p2kb/refresh-kb.sh > .p2kb-cache/refresh-kb.sh && \
chmod +x .p2kb-cache/refresh-kb.sh && \
.p2kb-cache/refresh-kb.shOnly use this if running in native Windows PowerShell, not through Bash:
New-Item -ItemType Directory -Force -Path .p2kb-cache | Out-Null
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/ironsheep/P2-Knowledge-Base/main/engineering/tools/p2kb/refresh-kb.ps1" -OutFile ".p2kb-cache\refresh-kb.ps1"
& ".p2kb-cache\refresh-kb.ps1".p2kb-cache/fetch-kb-file.sh --helpYou should see available commands including --search, --browse, and --categories.
# Search for keys by keyword
.p2kb-cache/fetch-kb-file.sh --search uart
.p2kb-cache/fetch-kb-file.sh --search cordic
# Browse by category
.p2kb-cache/fetch-kb-file.sh --categories
.p2kb-cache/fetch-kb-file.sh --browse pasm2_branch
# See what's cached locally
.p2kb-cache/fetch-kb-file.sh --cached# Fetch by key
.p2kb-cache/fetch-kb-file.sh p2kbPasm2Mov
.p2kb-cache/fetch-kb-file.sh p2kbArchCog
.p2kb-cache/fetch-kb-file.sh p2kbGuideQuickQueries| Prefix | Content Type |
|---|---|
p2kbPasm2* |
PASM2 instructions |
p2kbSpin2* |
Spin2 methods/keywords |
p2kbArch* |
Architecture documentation |
p2kbSmartPin* |
Smart Pin modes |
p2kbGuide* |
Getting started guides |
p2kbHw* |
Hardware specifications |
.p2kb-cache/refresh-kb.shAfter bootstrap, see the comprehensive guide:
deliverables/ai-reference/auxiliary-guides/interaction/using-with-ai.md
P2 Knowledge Base - Key-based access for AI assistants