重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
System by danielmiessler/personal_ai_infrastructure
npx skills add https://github.com/danielmiessler/personal_ai_infrastructure --skill System执行前,请检查以下路径的用户自定义配置: ~/.claude/skills/CORE/USER/SKILLCUSTOMIZATIONS/System/
如果此目录存在,则加载并应用其中找到的任何 PREFERENCES.md、配置文件或资源。这些配置将覆盖默认行为。如果目录不存在,则使用技能的默认配置。
为 PAI 系统提供系统验证、完整性审计、文档跟踪和安全扫描。
此技能在前台运行,因此您可以看到所有输出、进度,并在工作时听到语音通知。文档更新、完整性检查和其他系统操作应保持可见,以维持透明度。
执行工作流时,请同时执行以下两项操作:
发送语音通知:
curl -s -X POST http://localhost:8888/notify
-H "Content-Type: application/json"
-d '{"message": "Running WORKFLOWNAME workflow from System skill"}'
> /dev/null 2>&1 &
输出文本通知:
Running the WorkflowName workflow from the System skill...
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 工作流 | 触发词 | 目的 | 文件 |
|---|---|---|---|
| IntegrityCheck | "integrity check", "audit system", "check references", "system health" | 查找并修复系统中的损坏引用 | Workflows/IntegrityCheck.md |
| DocumentSession | "document session", "document today", "document this session", "log session" | 根据转录记录记录当前会话的工作 | Workflows/DocumentSession.md |
| DocumentRecent | "document recent", "catch up docs", "what's undocumented", "document since last update" | 为自上次文档更新以来的变更进行补录文档 | Workflows/DocumentRecent.md |
组合规则:
| 工作流 | 触发词 | 文件 |
|---|---|---|
| SecretScanning | "check for secrets", "scan for credentials", "security scan" | Workflows/SecretScanning.md |
| PrivacyCheck | "privacy check", "check for sensitive data", "data isolation" | Workflows/PrivacyCheck.md |
| 工作流 | 触发词 | 文件 |
|---|---|---|
| WorkContextRecall | "we just worked on", "what did we do with", "remember when we", "didn't we already" | Workflows/WorkContextRecall.md |
注意: 对于公共 PAI 完整性检查("check PAI integrity", "audit PAI packs"),请使用 PAI 技能 → PAIIntegrityCheck.md
示例 1:完整性检查
User: "Run an integrity check"
→ 调用 IntegrityCheck 工作流
→ 启动并行代理审计 ~/.claude
→ 发现损坏的引用、缺失的文件
→ 返回发现/修复的问题列表
示例 2:记录当前会话
User: "Document this session"
→ 调用 DocumentSession 工作流
→ 读取当前会话转录记录
→ 使用 AI 提取变更内容和原因
→ 在 MEMORY/PAISYSTEMUPDATES/ 中创建条目
示例 3:补录文档
User: "What's undocumented? Catch up the docs."
→ 调用 DocumentRecent 工作流
→ 查找上次文档更新的时间戳
→ 比较自那时起的 git 历史记录
→ 为遗漏的变更生成文档
示例 4:密钥扫描
User: "Check for secrets before I push"
→ 调用 SecretScanning 工作流
→ 在指定目录上运行 TruffleHog
→ 报告发现的任何 API 密钥、凭据
示例 5:回忆过往工作
User: "We just worked on the status line - why broken again?"
→ 调用 WorkContextRecall 工作流
→ 在 MEMORY/、git 历史记录中搜索 "status line"
→ 呈现变更时间线和可能的回归原因
| 操作 | 输入 | 输出 | 持续时间 |
|---|---|---|---|
| IntegrityCheck | 代码库扫描 | 发现/修复的损坏引用列表 | ~2-5 分钟 |
| DocumentSession | 会话转录记录 | PAISYSTEMUPDATES 条目 | ~30 秒 |
| DocumentRecent | 自上次更新以来的 git 历史记录 | 多个 PAISYSTEMUPDATES 条目 | ~1-2 分钟 |
End of Session: DocumentSession
After Refactoring: IntegrityCheck → DocumentSession
Catch-up: DocumentRecent
| 审计类型 | 工具 | 范围 | 持续时间 |
|---|---|---|---|
| 密钥扫描 | TruffleHog | 任意目录 | ~30 秒-2 分钟 |
| 隐私检查 | grep/patterns | skills/ (排除 USER/WORK) | ~30 秒 |
详细叙述结构:
| 工具 | 目的 | 位置 |
|---|---|---|
| SecretScan.ts | TruffleHog 包装器,用于凭据检测 | CORE/Tools/SecretScan.ts |
| CreateUpdate.ts | 创建新的系统更新条目 | Tools/CreateUpdate.ts |
| UpdateIndex.ts | 重新生成 index.json 和 CHANGELOG.md | Tools/UpdateIndex.ts |
| UpdateSearch.ts | 搜索和查询系统更新 | Tools/UpdateSearch.ts |
| ExtractArchitectureUpdates.ts | 历史迁移工具(一次性使用) | Tools/ExtractArchitectureUpdates.ts |
| 模板 | 目的 | 位置 |
|---|---|---|
| Update.md | 系统更新条目的模板 | Templates/Update.md |
| 输出 | 位置 |
|---|---|
| 完整性报告 | MEMORY/STATE/integrity/YYYY-MM-DD.md |
| 系统更新 | MEMORY/PAISYSTEMUPDATES/YYYY/MM/*.md |
| 更新索引 | MEMORY/PAISYSTEMUPDATES/index.json |
| 变更日志 | MEMORY/PAISYSTEMUPDATES/CHANGELOG.md |
每周安装次数
58
仓库
GitHub 星标数
10.4K
首次出现
Jan 24, 2026
安全审计
安装于
gemini-cli52
codex50
opencode49
github-copilot48
claude-code46
cursor46
Before executing, check for user customizations at: ~/.claude/skills/CORE/USER/SKILLCUSTOMIZATIONS/System/
If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.
System validation, integrity audits, documentation tracking, and security scanning for the PAI system.
This skill runs in the foreground so you can see all output, progress, and hear voice notifications as work happens. Documentation updates, integrity checks, and other system operations should be visible to maintain transparency.
When executing a workflow, do BOTH:
Send voice notification :
curl -s -X POST http://localhost:8888/notify \
-H "Content-Type: application/json" \
-d '{"message": "Running WORKFLOWNAME workflow from System skill"}' \
> /dev/null 2>&1 &
Output text notification :
Running the **WorkflowName** workflow from the **System** skill...
| Workflow | Trigger | Purpose | File |
|---|---|---|---|
| IntegrityCheck | "integrity check", "audit system", "check references", "system health" | Find and fix broken references across the system | Workflows/IntegrityCheck.md |
| DocumentSession | "document session", "document today", "document this session", "log session" | Document current session's work from transcript | Workflows/DocumentSession.md |
| DocumentRecent | "document recent", "catch up docs", "what's undocumented", "document since last update" | Catch-up documentation for changes since last documented update | Workflows/DocumentRecent.md |
Composition Rules:
| Workflow | Trigger | File |
|---|---|---|
| SecretScanning | "check for secrets", "scan for credentials", "security scan" | Workflows/SecretScanning.md |
| PrivacyCheck | "privacy check", "check for sensitive data", "data isolation" | Workflows/PrivacyCheck.md |
| Workflow | Trigger | File |
|---|---|---|
| WorkContextRecall | "we just worked on", "what did we do with", "remember when we", "didn't we already" | Workflows/WorkContextRecall.md |
Note: For public PAI integrity ("check PAI integrity", "audit PAI packs"), use the PAI skill → PAIIntegrityCheck.md
Example 1: Integrity Check
User: "Run an integrity check"
→ Invokes IntegrityCheck workflow
→ Spawns parallel agents to audit ~/.claude
→ Finds broken references, missing files
→ Returns list of issues found/fixed
Example 2: Document Current Session
User: "Document this session"
→ Invokes DocumentSession workflow
→ Reads current session transcript
→ Uses AI to extract what changed and why
→ Creates entry in MEMORY/PAISYSTEMUPDATES/
Example 3: Catch-up Documentation
User: "What's undocumented? Catch up the docs."
→ Invokes DocumentRecent workflow
→ Finds last documented update timestamp
→ Compares git history since then
→ Generates documentation for missed changes
Example 4: Secret Scanning
User: "Check for secrets before I push"
→ Invokes SecretScanning workflow
→ Runs TruffleHog on specified directory
→ Reports any API keys, credentials found
Example 5: Recall Past Work
User: "We just worked on the status line - why broken again?"
→ Invokes WorkContextRecall workflow
→ Searches MEMORY/, git history for "status line"
→ Presents timeline of changes and possible regression
| Operation | Input | Output | Duration |
|---|---|---|---|
| IntegrityCheck | Codebase scan | List of broken refs found/fixed | ~2-5 min |
| DocumentSession | Session transcript | PAISYSTEMUPDATES entry | ~30s |
| DocumentRecent | Git history since last update | Multiple PAISYSTEMUPDATES entries | ~1-2 min |
End of Session: DocumentSession
After Refactoring: IntegrityCheck → DocumentSession
Catch-up: DocumentRecent
| Audit Type | Tool | Scope | Duration |
|---|---|---|---|
| Secret Scan | TruffleHog | Any directory | ~30s-2min |
| Privacy Check | grep/patterns | skills/ (excl USER/WORK) | ~30s |
Verbose Narrative Structure:
| Tool | Purpose | Location |
|---|---|---|
| SecretScan.ts | TruffleHog wrapper for credential detection | CORE/Tools/SecretScan.ts |
| CreateUpdate.ts | Create new system update entries | Tools/CreateUpdate.ts |
| UpdateIndex.ts | Regenerate index.json and CHANGELOG.md | Tools/UpdateIndex.ts |
| UpdateSearch.ts | Search and query system updates | Tools/UpdateSearch.ts |
| Template | Purpose | Location |
|---|---|---|
| Update.md | Template for system update entries | Templates/Update.md |
| Output | Location |
|---|---|
| Integrity Reports | MEMORY/STATE/integrity/YYYY-MM-DD.md |
| System Updates | MEMORY/PAISYSTEMUPDATES/YYYY/MM/*.md |
| Update Index | MEMORY/PAISYSTEMUPDATES/index.json |
| Changelog | MEMORY/PAISYSTEMUPDATES/CHANGELOG.md |
Weekly Installs
58
Repository
GitHub Stars
10.4K
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
gemini-cli52
codex50
opencode49
github-copilot48
claude-code46
cursor46
| Historical migration tool (one-time use) |
Tools/ExtractArchitectureUpdates.ts |