@artale/pi-pai 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@artale/pi-pai",
3
+ "version": "4.3.0",
4
+ "description": "Personal AI Infrastructure for Pi \u2014 synced with PAI v1.0.0 + Daniel Miesslers framework + 9 skill categories",
5
+ "type": "module",
6
+ "main": "src/extension.ts",
7
+ "pi": {
8
+ "extensions": [
9
+ "src/extension.ts"
10
+ ],
11
+ "commands": [
12
+ "status"
13
+ ],
14
+ "tools": [
15
+ "pai_status",
16
+ "pai_learn",
17
+ "pai_rate"
18
+ ],
19
+ "skills": [
20
+ "agents",
21
+ "content-analysis",
22
+ "investigation",
23
+ "media",
24
+ "research",
25
+ "scraping",
26
+ "security",
27
+ "telos",
28
+ "thinking"
29
+ ]
30
+ },
31
+ "scripts": {
32
+ "build": "tsc",
33
+ "test": "pi -e src/extension.ts -p \"say hello and list your /commands and tools\"",
34
+ "test:old": "echo \"Legacy tests\""
35
+ },
36
+ "keywords": [
37
+ "pi-package",
38
+ "pi-extension",
39
+ "pai",
40
+ "personal-ai-infrastructure",
41
+ "telos",
42
+ "ralph-wiggum",
43
+ "damage-control",
44
+ "goal-tracking",
45
+ "learning-loop",
46
+ "scientific-method"
47
+ ],
48
+ "author": "arosstale",
49
+ "license": "MIT",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/arosstale/pi-pai.git"
53
+ },
54
+ "devDependencies": {
55
+ "@types/js-yaml": "^4.0.9",
56
+ "@types/node": "^25.0.3",
57
+ "typescript": "^5.9.3"
58
+ },
59
+ "peerDependencies": {
60
+ "@mariozechner/pi-coding-agent": ">=0.50.0"
61
+ },
62
+ "dependencies": {
63
+ "js-yaml": "^4.1.1"
64
+ }
65
+ }
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: agents
3
+ description: Compose custom agents from base traits, voices, and specializations for specialized perspectives. Create agent teams for parallel work. USE WHEN create custom agents, spin up agents, specialized agents, agent personalities, available traits, compose agent, agent profile, spawn parallel agents, launch agents, agent teams, swarm.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Agents Skill
10
+
11
+ ## Agent Composition
12
+
13
+ Create specialized agents by combining:
14
+ 1. **Base Trait** — Core expertise (Engineer, Researcher, Designer, etc.)
15
+ 2. **Voice** — Communication style (Academic, Practitioner, Contrarian, etc.)
16
+ 3. **Specialization** — Domain focus (Security, Frontend, Data, etc.)
17
+
18
+ ## Available Base Traits
19
+
20
+ - **Engineer** — Implementation-focused, TDD, clean code
21
+ - **Architect** — System design, trade-offs, scalability
22
+ - **Researcher** — Evidence-based, multi-source, thorough
23
+ - **Designer** — User-centered, accessible, beautiful
24
+ - **Analyst** — Data-driven, pattern recognition, synthesis
25
+ - **Strategist** — Long-term thinking, competitive analysis
26
+
27
+ ## Team Coordination
28
+
29
+ For complex tasks, spawn multiple agents with:
30
+ - Shared context (the task description)
31
+ - Independent execution
32
+ - Results synthesis at the end
33
+
34
+ ## Usage
35
+
36
+ Describe the kind of agent(s) you need and the task. Agents will be composed and deployed.
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: content-analysis
3
+ description: Content extraction and analysis for video, podcast, article, and YouTube content. Extracts structured insights, key takeaways, and wisdom. USE WHEN extract wisdom, content analysis, analyze content, insight report, analyze video, analyze podcast, extract insights, key takeaways, what did I miss, extract from YouTube.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Content Analysis Skill
10
+
11
+ ## Extraction Framework
12
+
13
+ For any content (article, video, podcast, document):
14
+
15
+ 1. **Summary** — 25-50 word overview
16
+ 2. **Key Ideas** — 5-15 most important ideas
17
+ 3. **Insights** — Non-obvious observations
18
+ 4. **Quotes** — Notable direct quotes
19
+ 5. **Habits** — Actionable habits mentioned
20
+ 6. **Facts** — Surprising or important facts
21
+ 7. **Recommendations** — Books, tools, resources mentioned
22
+ 8. **Action Items** — What to do with this knowledge
23
+
24
+ ## Output Format
25
+
26
+ ```
27
+ ## Content Analysis: [Title]
28
+
29
+ ### One-Sentence Summary
30
+ [25-50 words]
31
+
32
+ ### Key Ideas (ranked by importance)
33
+ 1. [Idea]
34
+ 2. [Idea]
35
+
36
+ ### Insights
37
+ - [Non-obvious observation]
38
+
39
+ ### Notable Quotes
40
+ > "Quote" — Speaker
41
+
42
+ ### Action Items
43
+ - [ ] [Actionable takeaway]
44
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: investigation
3
+ description: OSINT and investigation including people search, company intel, domain lookup, social media discovery, and threat intel. USE WHEN OSINT, due diligence, company intel, background check, find person, people search, domain lookup, entity lookup, threat intel, who is.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Investigation Skill
10
+
11
+ ## Capabilities
12
+
13
+ - People search and public records
14
+ - Company intelligence and filings
15
+ - Domain and infrastructure lookup
16
+ - Social media discovery
17
+ - Threat intelligence correlation
18
+ - Entity relationship mapping
19
+
20
+ ## Methods
21
+
22
+ 1. **Surface scan** — Quick public data aggregation
23
+ 2. **Deep dive** — Cross-referencing multiple data sources
24
+ 3. **Pattern analysis** — Identifying connections and anomalies
25
+ 4. **Timeline reconstruction** — Building event chronology
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: media
3
+ description: Visual and video content creation. AI images, technical diagrams, mermaid flowcharts, infographics, comics, and special effects. USE WHEN art, diagrams, mermaid, flowcharts, infographics, video, animation, thumbnails, visualizations, generate image, technical diagrams.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Media Skill
10
+
11
+ ## Capabilities
12
+
13
+ ### Diagrams & Charts
14
+ - Mermaid flowcharts, sequence diagrams, class diagrams
15
+ - Technical architecture diagrams
16
+
17
+ ### AI Image Generation
18
+ - Prompt engineering for image models
19
+ - Style guidance and iteration
20
+
21
+ ### Infographics
22
+ - Data visualization
23
+ - Comparison frameworks
24
+ - Timeline graphics
25
+
26
+ ## Usage
27
+
28
+ Describe what you need visually. For diagrams, Mermaid is preferred. For complex visuals, provide the data and desired style.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: research
3
+ description: Comprehensive research and content extraction. Quick, standard, extensive, and deep modes with multi-source parallel investigation, content retrieval, and analysis. USE WHEN research, investigate, find information, analyze content, retrieve content, extract knowledge, web scraping, standard research, map landscape, competitive analysis, deep investigation.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Research Skill
10
+
11
+ ## Modes
12
+
13
+ | Mode | Depth | Sources | Time |
14
+ |------|-------|---------|------|
15
+ | Quick | Surface scan | 2-3 sources | <1 min |
16
+ | Standard | Balanced coverage | 4-6 sources | 2-5 min |
17
+ | Extensive | Broad sweep | 8-12 sources | 5-10 min |
18
+ | Deep | Exhaustive | 15+ sources | 10-30 min |
19
+
20
+ ## Workflow
21
+
22
+ 1. **Decompose** the research question into 3-10 sub-queries
23
+ 2. **Search** using web search across multiple angles
24
+ 3. **Extract** key findings, data points, and insights
25
+ 4. **Synthesize** into a structured report
26
+ 5. **Verify** claims with cross-referencing
27
+
28
+ ## Output Format
29
+
30
+ ```
31
+ ## Research: [Topic]
32
+
33
+ ### Key Findings
34
+ - [Finding 1 with source]
35
+ - [Finding 2 with source]
36
+
37
+ ### Analysis
38
+ [Synthesis of findings]
39
+
40
+ ### Sources
41
+ - [Source 1](url)
42
+ - [Source 2](url)
43
+ ```
44
+
45
+ ## Rules
46
+
47
+ - Always cite sources
48
+ - Flag conflicting information
49
+ - Distinguish facts from opinions
50
+ - Note confidence levels
51
+ - Prefer primary sources over secondary
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: scraping
3
+ description: Web scraping via progressive escalation and social media platform scrapers. USE WHEN scraping, crawl, scrape URL, bot detection, CAPTCHA, spider.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Scraping Skill
10
+
11
+ ## Progressive Escalation
12
+
13
+ 1. **Direct fetch** — curl/fetch with standard headers
14
+ 2. **Browser rendering** — Headless browser for JS-heavy sites
15
+ 3. **Proxy rotation** — For rate-limited or geo-restricted content
16
+ 4. **Specialized APIs** — Platform-specific scrapers
17
+
18
+ ## Rules
19
+
20
+ - Respect robots.txt
21
+ - Rate limit requests
22
+ - Handle pagination
23
+ - Extract structured data
24
+ - Store raw + processed versions
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: security
3
+ description: Security assessment including reconnaissance, web assessment (OWASP), vulnerability analysis, threat modeling, and security news analysis. USE WHEN recon, reconnaissance, port scan, subdomain, DNS, WHOIS, web assessment, OWASP, pentest, vulnerability analysis, threat modeling, security trends, security research.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Security Skill
10
+
11
+ ## Capabilities
12
+
13
+ ### Reconnaissance
14
+ - Subdomain enumeration
15
+ - DNS analysis
16
+ - WHOIS lookup
17
+ - Port scanning
18
+ - ASN mapping
19
+ - Technology fingerprinting
20
+
21
+ ### Web Assessment (OWASP)
22
+ - Authentication testing
23
+ - Authorization testing
24
+ - Input validation
25
+ - Session management
26
+ - Error handling
27
+ - Cryptography review
28
+
29
+ ### Threat Modeling
30
+ - STRIDE framework
31
+ - Attack surface mapping
32
+ - Risk assessment matrix
33
+ - Mitigation recommendations
34
+
35
+ ## Tools
36
+
37
+ Use these CLI tools when available:
38
+ - `nmap` — Port scanning
39
+ - `ffuf` — Web fuzzing
40
+ - `dig` / `whois` — DNS/WHOIS
41
+ - `curl` — HTTP testing
42
+ - `jq` — JSON parsing
43
+
44
+ ## Rules
45
+
46
+ - Only perform authorized testing
47
+ - Document all findings with evidence
48
+ - Rate severity: Critical > High > Medium > Low > Info
49
+ - Provide remediation for each finding
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: telos
3
+ description: Life OS and project analysis. Goals, dependencies, beliefs, wisdom, books, movies, narrative points, project dashboards, and life direction analysis. USE WHEN Telos, life goals, projects, dependencies, beliefs, wisdom, books, movies, project analysis, dashboard.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Telos — Life Operating System
10
+
11
+ ## Framework
12
+
13
+ Telos is a structured system for tracking:
14
+ - **Mission** — Core life purpose
15
+ - **Goals** — Active objectives with timelines
16
+ - **Projects** — Active work mapped to goals
17
+ - **Dependencies** — What each goal requires
18
+ - **Beliefs** — Core beliefs that drive decisions
19
+ - **Wisdom** — Accumulated insights from experience
20
+ - **Books** — Reading list and key takeaways
21
+ - **Movies/Media** — Cultural consumption log
22
+
23
+ ## Dashboard
24
+
25
+ Generate a structured overview showing:
26
+ 1. Active goals and their status
27
+ 2. Projects and which goals they serve
28
+ 3. Recent wisdom additions
29
+ 4. Dependency blockers
30
+
31
+ ## Reports
32
+
33
+ Structured reports with:
34
+ - Executive summary
35
+ - Key findings
36
+ - Recommendations
37
+ - Data exhibits
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: thinking
3
+ description: Analytical and creative thinking frameworks. First principles decomposition, iterative depth analysis, council debate with multiple perspectives, red team stress testing, brainstorming, world and threat models, and scientific method. USE WHEN first principles, decompose, challenge assumptions, iterative depth, be creative, brainstorm, council, debate, red team, stress test, devil's advocate, threat model, world model, think about, experiment, hypothesis, deep exploration, figure out, optimize, improve, weigh options, creative solutions, critique, counterarguments.
4
+ metadata:
5
+ author: pai
6
+ version: 1.0.0
7
+ ---
8
+
9
+ # Thinking Skill
10
+
11
+ ## Available Frameworks
12
+
13
+ ### First Principles
14
+ Decompose problem to fundamental truths, then rebuild from ground up.
15
+ 1. Identify assumptions
16
+ 2. Break down to irreducible elements
17
+ 3. Rebuild solution from fundamentals
18
+
19
+ ### Council (Multi-perspective Debate)
20
+ 3-round debate with 3-5 distinct perspectives:
21
+ - Round 1: Each perspective states position
22
+ - Round 2: Challenge and counter-argue
23
+ - Round 3: Synthesize and find consensus
24
+
25
+ ### Red Team
26
+ Adversarial analysis:
27
+ 1. Identify the plan/system to attack
28
+ 2. Generate 5-10 attack vectors
29
+ 3. Rate severity and likelihood
30
+ 4. Propose mitigations
31
+
32
+ ### Iterative Depth
33
+ Explore topic from 2-8 angles, each adding depth:
34
+ 1. Surface understanding
35
+ 2. Mechanism understanding
36
+ 3. Edge cases and failures
37
+ 4. Systemic implications
38
+
39
+ ### Science Method
40
+ 1. Observe the phenomenon
41
+ 2. Form hypothesis
42
+ 3. Design experiment
43
+ 4. Execute and measure
44
+ 5. Analyze results
45
+ 6. Iterate
46
+
47
+ ### World/Threat Model
48
+ Analyze threats, opportunities, and second-order effects across multiple time horizons.
49
+
50
+ ## Usage
51
+
52
+ Specify which framework to use, or describe the problem and the appropriate framework will be selected.