Personal AI Infrastructure - Skills-based context management for Claude Code
npx skills add https://github.com/robdtaylor/personal-ai-infrastructure --skill businessstrategyCLI を使用してこのスキルをインストールし、ワークスペースで SKILL.md ワークフローの使用を開始します。
A skills-based context management system for Claude Code. PAI extends Claude Code with domain-specific knowledge, custom workflows, and automated session management - focused on automotive manufacturing operations.
PAI is a personal AI infrastructure layer that sits on top of Claude Code, providing:
This repository contains 39 automotive manufacturing skills covering IATF 16949 quality management, CNC operations, damper engineering, business operations, and plant management.
git clone https://github.com/robdtaylor/personal-ai-infrastructure.git ~/.claude
Note: If you already have a
~/.claudedirectory, back it up first:mv ~/.claude ~/.claude-backup
cd ~/.claude
cp settings.json.template settings.json
Edit settings.json to customize:
# Install Bun if not already installed
curl -fsSL https://bun.sh/install | bash
# Install hook dependencies
cd ~/.claude/hooks && bun install
claude
You should see the PAI context load at session start.
~/.claude/
├── skills/ # Skill packages (context modules)
│ ├── Pfmea/ # Process FMEA generation
│ ├── Spc/ # Statistical Process Control
│ ├── Cncsetup/ # CNC setup sheets
│ └── ... # 38 automotive manufacturing skills
├── hooks/ # Event-driven automation
├── commands/ # Custom slash commands
├── bin/ # CLI tools and utilities
├── MEMORY/ # Session history and learnings
└── settings.json # Claude Code configuration
| Skill | Description |
|---|---|
| Pfmea | AIAG-VDA compliant Process FMEAs with S/O/D ratings and RPN calculations |
| Spc | SPC charting, process capability (Cpk/Ppk), control chart interpretation |
| Msa | Gage R&R studies per AIAG MSA manual |
| Controlplan | AIAG-format Control Plans linked to PFMEAs |
| Eightd | 8D problem solving with containment and root cause analysis |
| Internalaudit | IATF 16949 internal audit programme support |
| A3criticalthinking | Toyota-style structured problem solving |
| Apqpppap | APQP phase gates and PPAP 18-element documentation |
| Skill | Description |
|---|---|
| Cncsetup | Standardized CNC setup sheets (DMG MORI, CITIZEN, MITSUBISHI EDM, Haas) |
| Cuttingparams | Feeds, speeds, and depths of cut for common materials |
| Plantcapability | Machine shop capability checking and machine selection |
| Maintenancepm | Preventive maintenance schedules for shop equipment |
| Toolcrib | Tool inventory management with reorder points |
| Assemblyoperations | LVA and FML assembly guidance (kitting, torque, poka-yoke) |
| Tribalknowledge | Machinist expertise capture and preservation |
| Quoteestimator | Rough cycle time and cost estimation |
| Skillsmatrix | Operator training and competency tracking |
| Skill | Description |
|---|---|
| DamperEngineering | Hydraulic damper design - DSSV valves, seals, materials |
| Damperassembly | Dept 71 DSSV damper assembly operations |
| StructuralFEA | Open source FEA structural analysis (CalculiX) |
| Skill | Description |
|---|---|
| Commercialsales | RFQ processing, contract review, customer management |
| Costengineering | Manufacturing cost analysis, make vs buy, value engineering |
| Supplychain | Strategic purchasing, supplier development, materials management |
| Shippinglogistics | UK/US/Canadian shipping, customs, tariffs, HS codes |
| Sapecc | SAP ECC operations (MM, PP, SD, QM, PM, FICO) |
| Powerplatform | Power Automate flow generation from natural language |
| Msoffice | Word/PowerPoint document creation |
| Skill | Description |
|---|---|
| Hoshinkanri | Strategic policy deployment (X-Matrix, catchball, bowling charts) |
| Automotivegm | Plant GM / Executive VP operations expertise |
| Directorofoperations | Multi-plant operations leadership perspective |
| Automotivemanufacturing | Manufacturing SOPs and work instructions (IATF 16949/ISO 9001) |
| Automotiveproductplanning | 5-10 year product planning for specialist vehicle manufacturers |
| Businessstrategy | Financial analysis, P&L, valuations, competitive analysis |
| Healthsafety | UK H&S management (risk assessments, COSHH, LOTO) |
| Ukhradviser | UK employment law, ACAS procedures, HR guidance |
| Skill | Description |
|---|---|
| Algorithm | Universal 7-phase execution pattern for structured work |
| Council | Multi-perspective deliberation for complex decisions |
| Manufacturingdemo | Demo manufacturing knowledge base |
| Marketing | Marketing content creation and campaign planning for manufacturing businesses |
Skills are modular context packages. Create a new skill:
mkdir -p ~/.claude/skills/MySkill
Create SKILL.md:
---
name: MySkill
description: Brief description. USE WHEN user says 'keyword1', 'keyword2'.
---
# MySkill
## Overview
What this skill does...
## Workflows
- WorkflowName: Description
## Reference
Key information the AI should know...
Regenerate the skill index:
bun run ~/.claude/tools/GenerateSkillIndex.ts
PAI uses Claude Code's hook system for automation:
| Hook | Purpose |
|---|---|
SessionStart |
Load core context, initialize session |
PreToolUse |
Security validation for Bash commands |
PostToolUse |
Capture signals and checkpoints |
Stop |
Capture learnings and session summary |
Configure hooks in settings.json.
Slash commands are defined in ~/.claude/commands/. Example:
# /mycommand
Description of what this command does.
## Instructions
Steps for the AI to follow...
Set in settings.json under env:
{
"env": {
"PAI_DIR": "$HOME/.claude",
"TIME_ZONE": "Europe/London"
}
}
bun --versionsettings.jsonchmod +x ~/.claude/hooks/*.tsbun run ~/.claude/tools/GenerateSkillIndex.tsSKILL.mdMIT License - See LICENSE file for details.
Built for Claude Code by Anthropic.