用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/ai-wallpaper-generator --skill global-knowledge-sync命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Global Knowledge Sync |
| description | Synchronize insights between local projects and the Alex Global Knowledge repository |
Manages bidirectional synchronization between local project knowledge and the centralized Alex Global Knowledge repository.
If you don't have a Global Knowledge repository yet, create one:
cd C:\Development # or your projects folder
gh repo create My-Global-Knowledge --private --description "Alex Global Knowledge Base" --clone
cd My-Global-Knowledge
My-Global-KnowledgeAfter creating the repo, initialize the structure:
# Create folders
mkdir patterns, insights, skills
# Create index.json
@'
{
"version": "1.0.0",
"lastUpdated": "$(Get-Date -Format 'yyyy-MM-ddTHH:mm:ssZ')",
"entries": []
}
'@ | Out-File -FilePath index.json -Encoding utf8
# Create README
@'
# My Global Knowledge Base
Cross-project learnings for Alex Cognitive Architecture.
## Structure
- `patterns/` - Reusable solutions (GK-*.md)
- `insights/` - Timestamped learnings (GI-*.md)
- `skills/` - Skill registry for pull-sync
- `index.json` - Master search index
## Usage
- `/knowledge <query>` - Search knowledge
- `/saveinsight` - Save a learning
- `/promote` - Make local knowledge global
'@ | Out-File -FilePath README.md -Encoding utf8
# Commit
git add -A
git commit -m "feat: initialize global knowledge structure"
git push
Default: The GK repo should be a sibling folder to your project workspace:
C:\Development\YourProject\C:\Development\My-Global-Knowledge\Configuration: Set via globalKnowledgeRepo in .github/config/alex-settings.json
Note: All heirs inherit this skill — GK sync works in any Alex-enabled project.
Save a learning from the current project to global knowledge.
Trigger: /saveinsight, save this insight, promote to global
Process:
pattern (reusable) or insight (timestamped)GK-{slug}.md or GI-{slug}-{date}.mdindex.json with metadataFind relevant knowledge from past projects.
Trigger: /knowledge <query>, have I solved this before?
Process:
index.json for matching entries (title, tags, summary)Automated sync during dream/meditation cycles.
Trigger: Dream protocol, meditation consolidation
Process:
KNOWLEDGE-INDEX.md if entries changedPromote a project's skill file to global pattern.
Trigger: /promote, make this global
Process:
.github/skills/ or skillpatterns/ folderDiscover and pull new skills from the GK repository.
Trigger: /checkskills, session start (if auto-check enabled)
Process:
skills/skill-registry.json from GK/pullskill <id>Registry Structure (skills/skill-registry.json):
{
"version": "1.0.0",
"skills": [
{
"id": "skill-development",
"version": "1.0.0",
"inheritance": "inheritable",
"priority": "core",
"source": "master-alex"
}
],
"wishlist": [...],
"projectTypeMatching": {...}
}
Project-Skill Matching: Heirs detect project type and recommend relevant wishlist skills. See skill-development for full protocol.
Add to dream checklist:
- [ ] GK sync: Pull latest, check uncommitted, regenerate index
During consolidation, prompt:
When upgrading a project:
relatedProjects of used entries# Pattern Title
**ID**: GK-pattern-slug
**Category**: category-name
**Tags**: tag1, tag2, tag3
**Source**: Original project name
**Created**: 2026-02-06T12:00:00Z
---
## Description
What this pattern solves.
## Implementation
How to apply it.
## Examples
Code samples.
# Insight Title
**ID**: GI-insight-slug-2026-02-06
**Category**: category-name
**Tags**: tag1, tag2
**Source Project**: project-name
**Date**: 2026-02-06T12:00:00Z
---
## Context
What problem you were solving.
## Insight
What you learned.
## Applicability
When to use this again.
| Category | Use For |
|---|---|
architecture | System design, patterns, structure |
api-design | REST, GraphQL, API patterns |
debugging | Troubleshooting, diagnostics |
deployment | CI/CD, infrastructure, publishing |
documentation | Docs, diagrams, formatting |
error-handling | Exception handling, recovery |
patterns | Design patterns, reusable solutions |
performance | Optimization, profiling |
refactoring | Code improvement, cleanup |
security | Auth, encryption, vulnerabilities |
testing | Unit, integration, E2E |
tooling | Dev tools, configuration |
general | Everything else |