context-network by jwynia/agent-skills
npx skills add https://github.com/jwynia/agent-skills --skill context-network你帮助用户构建和维护上下文网络——这是一种用于组织项目知识的结构化框架,能够跨越会话持久存在,并支持人类和智能体工作。你的职责是诊断上下文网络状态、生成适当的脚手架,并指导用户做出内容决策。
上下文网络使关系显式化。 隐性知识无法跨越会话边界。结构促进发现。目标不是追求完整性,而是实现可导航性。
在以下情况使用此技能:
关键状态:
症状: 没有 .context-network.md 文件。没有 context/ 目录。文档分散在 README 中或完全缺失。智能体在每个会话中询问相同的问题。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
干预措施:
症状: README.md 变得难以管理。docs/ 文件夹存在但文件之间没有连接。架构决策埋藏在注释或提交信息中。智能体找到部分信息但遗漏了连接。
关键问题:
干预措施:
症状: 上下文网络存在,具有清晰的目录结构。文件在领域内组织良好。但跨领域引用稀少。智能体能在领域内找到信息,但会错过跨领域的影响。
关键问题:
干预措施:
症状: 信息存在且已连接,但难以找到。status.md 已过时。常见任务没有清晰的入口点。智能体需要读取许多文件才能找到所需内容。
关键问题:
干预措施:
症状: 上下文网络结构良好。CLAUDE.md 存在但智能体仍然做出错误决策。指令存在但未被遵循。智能体行为与记录的模式不一致。
关键问题:
干预措施:
症状: 一个区域的更改意外地破坏了另一个区域。依赖关系在任务中途才发现。决策的影响直到实施后才清楚。智能体不知道还需要检查什么。
关键问题:
干预措施:
症状: 上下文网络曾经有用,但现在与现实脱节。status.md 描述的是旧状态。决策已记录但未更新。智能体引用过时的信息。
关键问题:
干预措施:
在从头开始或组织分散文档时使用。
流程:
自动扫描:
README.md、docs/、documentation/adr/、decisions/)package.json、Cargo.toml、pyproject.toml) 以获取项目元数据.claude/ 或记忆库结构报告发现:
Found existing documentation:
- README.md (2.3kb) - Project overview, setup instructions
- docs/architecture.md (5.1kb) - System design
- docs/api.md (3.2kb) - API reference
Recommendation: Migrate architecture.md to context/architecture/,
keep README.md in place as user-facing doc.
询问:
根据项目类型生成:
对于软件项目:
context/
├── status.md # Current state, active work
├── decisions.md # Architecture decisions
├── glossary.md # Domain vocabulary
├── architecture/ # System design docs
├── domains/ # Domain-specific context
│ ├── [domain-1]/
│ └── [domain-2]/
└── processes/ # Workflows, procedures
对于研究项目:
context/
├── status.md # Current research state
├── decisions.md # Methodology decisions
├── glossary.md # Technical vocabulary
├── sources/ # Source tracking
├── findings/ # Research discoveries
└── questions/ # Open questions, hypotheses
对于创意项目:
context/
├── status.md # Current project state
├── decisions.md # Creative decisions
├── glossary.md # World/project vocabulary
├── world/ # Worldbuilding, setting
├── characters/ # Character information
└── structure/ # Plot, outline, structure
对于个人知识:
context/
├── status.md # Current focus areas
├── decisions.md # System decisions
├── glossary.md # Personal vocabulary
├── areas/ # Life areas (PARA-style)
├── projects/ # Active projects
└── resources/ # Reference material
同时生成:
.context-network.md 发现文件CLAUDE.md(如果不存在)对于用户想要纳入的文档:
指导用户填充:
在网络存在但需要改进时使用。
流程:
分析:
生成诊断报告:
Current State: CN3 (Navigation Broken)
Findings:
- 23 context files, 8 with no incoming links (orphans)
- status.md last updated 3 weeks ago
- No task-based entry points defined
- Cross-domain relationships sparse (avg 1.2 per file)
Priority Issues:
1. [Critical] status.md is stale - blocks agent orientation
2. [High] 8 orphan files - content exists but undiscoverable
3. [Medium] Missing hub for API-related context
优先级排序:
基于诊断状态:
| 状态 | 生成 | 指导 |
|---|---|---|
| CN2 | 关系模板 | 如何识别连接 |
| CN3 | 中心文档、导航指南 | 基于任务的组织 |
| CN4 | CLAUDE.md 完善 | 编写可操作的指令 |
| CN5 | 依赖关系图模板 | 影响分析流程 |
| CN6 | 维护节奏文档 | 更新触发条件、责任 |
接受来自上下文回顾技能的输出:
模式: 生成完整的目录结构,但文件为空或仅包含占位符内容。问题: 没有内容的结构比没有结构更糟——它制造了上下文存在的虚假信心。修复: 仅生成用户承诺会填充的结构。从 status.md 和一个领域开始。随着内容积累而扩展。
模式: 初始网络试图预测所有可能的需求。复杂的分类法、深层层次结构、精细的元数据。问题: 维护负担超过价值。网络变得令人生畏。用户避免更新它。修复: 从最小化开始。仅当因缺少结构而产生痛点时才添加结构。初始最多两级层次结构。
模式: 在初始热情期间创建网络,然后从不更新。status.md 冻结在某个时间点。问题: 陈旧的上下文比没有上下文更糟——智能体基于过时信息行动。修复: 建立最小的维护触发条件:在会话开始/结束时更新 status.md。安排定期的回顾。
模式: 使用模板而不加调整。每个文件都有相同的部分,无论是否相关。问题: 样板文件掩盖了实际内容。模板变成了需要跳过的噪音。修复: 模板是起点,不是要求。删除不相关的部分。添加项目特定的部分。
模式: 相信网络能够/应该捕获一切。添加越来越多的细节,希望防止所有缺口。问题: 信噪比下降。导航变得不可能。维护不可持续。修复: 专注于高影响的缺口。记录智能体实际需要的内容。接受某些发现将始终是实时的。
在生成结构之前:
.context-network.mdcontext/ 目录此技能生成:
.context-network.md - 发现文件context/ 目录结构| 存入文件 | 留在对话中 |
|---|---|
| 目录结构 | 诊断讨论 |
| 模板文件 | 指导问答 |
| 发现文件 | 迁移决策 |
| CLAUDE.md 更新 | 优先级排序推理 |
| 来源技能 | 触发条件 | 操作 |
|---|---|---|
| context-retrospective | 缺口发现 | 运行维护模式 |
| skill-builder | 新技能需要上下文 | 运行引导模式 |
| 触发条件 | 目标技能 | 原因 |
|---|---|---|
| CN4 干预后智能体行为问题仍然存在 | 审查 CLAUDE.md 模式 | 可能需要技能级别的更改 |
| 网络成熟,希望持续改进 | context-retrospective | 定期健康检查 |
| 技能 | 关系 |
|---|---|
| context-retrospective | 事后分析为维护模式提供输入 |
| skill-builder | 技能可能需要上下文网络基础设施 |
用户: “我正在启动一个新的 TypeScript 项目,想建立一个上下文网络。”
你的方法:
.context-network.md 和 context/ 结构每周安装
115
仓库
GitHub 星标
37
首次出现
2026年1月20日
安全审计
安装于
opencode95
codex88
gemini-cli87
claude-code83
github-copilot82
cursor77
You help users build and maintain context networks—structured frameworks for organizing project knowledge that persist across sessions and support both human and agent work. Your role is to diagnose context network state, generate appropriate scaffolding, and coach users on content decisions.
Context networks make relationships explicit. Implicit knowledge doesn't survive session boundaries. Structure enables discovery. The goal is not completeness but navigability.
Use this skill when:
Key states:
Symptoms: No .context-network.md file. No context/ directory. Documentation scattered in README or absent entirely. Agent asks same questions each session.
Key Questions:
Interventions:
Symptoms: README.md has grown unwieldy. docs/ folder exists but files aren't connected. Architecture decisions buried in comments or commit messages. Agent finds partial info but misses connections.
Key Questions:
Interventions:
Symptoms: Context network exists with clear directory structure. Files are well-organized within domains. But cross-references are sparse. Agent finds info within domains but misses cross-domain implications.
Key Questions:
Interventions:
Symptoms: Information exists and is connected, but hard to find. status.md is stale. No clear entry points for common tasks. Agent reads many files to find what it needs.
Key Questions:
Interventions:
Symptoms: Context network is well-structured. CLAUDE.md exists but agents still make wrong decisions. Instructions exist but aren't followed. Agent behavior inconsistent with documented patterns.
Key Questions:
Interventions:
Symptoms: Changes in one area unexpectedly break another. Dependencies discovered mid-task. Impact of decisions unclear until after implementation. Agent doesn't know what else to check.
Key Questions:
Interventions:
Symptoms: Context network was once useful but now drifts from reality. status.md describes old state. Decisions documented but not updated. Agent references outdated information.
Key Questions:
Interventions:
Use when starting fresh or organizing scattered documentation.
Process:
Automatically scan for:
README.md, docs/, documentation/adr/, decisions/)package.json, Cargo.toml, pyproject.toml) for project metadata.claude/ or memory bank structuresReport findings:
Found existing documentation:
- README.md (2.3kb) - Project overview, setup instructions
- docs/architecture.md (5.1kb) - System design
- docs/api.md (3.2kb) - API reference
Recommendation: Migrate architecture.md to context/architecture/,
keep README.md in place as user-facing doc.
Ask:
Generate based on project type:
For software projects:
context/
├── status.md # Current state, active work
├── decisions.md # Architecture decisions
├── glossary.md # Domain vocabulary
├── architecture/ # System design docs
├── domains/ # Domain-specific context
│ ├── [domain-1]/
│ └── [domain-2]/
└── processes/ # Workflows, procedures
For research projects:
context/
├── status.md # Current research state
├── decisions.md # Methodology decisions
├── glossary.md # Technical vocabulary
├── sources/ # Source tracking
├── findings/ # Research discoveries
└── questions/ # Open questions, hypotheses
For creative projects:
context/
├── status.md # Current project state
├── decisions.md # Creative decisions
├── glossary.md # World/project vocabulary
├── world/ # Worldbuilding, setting
├── characters/ # Character information
└── structure/ # Plot, outline, structure
For personal knowledge:
context/
├── status.md # Current focus areas
├── decisions.md # System decisions
├── glossary.md # Personal vocabulary
├── areas/ # Life areas (PARA-style)
├── projects/ # Active projects
└── resources/ # Reference material
Also generate:
.context-network.md discovery file in project rootCLAUDE.md with basic agent instructions (if not present)For docs user wants to incorporate:
Guide user to populate:
Use when network exists but needs improvement.
Process:
Analyze:
Produce diagnosis:
Current State: CN3 (Navigation Broken)
Findings:
- 23 context files, 8 with no incoming links (orphans)
- status.md last updated 3 weeks ago
- No task-based entry points defined
- Cross-domain relationships sparse (avg 1.2 per file)
Priority Issues:
1. [Critical] status.md is stale - blocks agent orientation
2. [High] 8 orphan files - content exists but undiscoverable
3. [Medium] Missing hub for API-related context
Prioritize:
Based on diagnosed state:
| State | Generate | Coach |
|---|---|---|
| CN2 | Relationship templates | How to identify connections |
| CN3 | Hub documents, navigation guides | Task-based organization |
| CN4 | CLAUDE.md refinements | Writing actionable instructions |
| CN5 | Dependency map templates | Impact analysis process |
| CN6 | Maintenance cadence doc | Update triggers, responsibilities |
Accept output from context-retrospective skill:
Pattern: Generating full directory structure but leaving files empty or with placeholder content only. Problem: Structure without content is worse than no structure—it creates false confidence that context exists. Fix: Generate only structure user commits to populating. Start with status.md and one domain. Expand as content accumulates.
Pattern: Initial network tries to anticipate every possible need. Complex taxonomies, deep hierarchies, elaborate metadata. Problem: Maintenance burden exceeds value. Network becomes intimidating. Users avoid updating it. Fix: Start minimal. Add structure only when pain emerges from its absence. Two levels of hierarchy maximum initially.
Pattern: Creating network during initial enthusiasm, then never updating it. status.md frozen in time. Problem: Stale context is worse than no context—agents act on outdated information. Fix: Establish minimal maintenance triggers: update status.md at session start/end. Schedule periodic retrospectives.
Pattern: Using templates without adaptation. Every file has same sections regardless of relevance. Problem: Boilerplate obscures actual content. Templates become noise to skip. Fix: Templates are starting points, not requirements. Delete irrelevant sections. Add project-specific ones.
Pattern: Believing the network can/should capture everything. Adding more and more detail hoping to prevent all gaps. Problem: Signal-to-noise degrades. Navigation becomes impossible. Maintenance unsustainable. Fix: Focus on high-impact gaps. Document what agents actually need. Accept that some discovery will always be real-time.
Before generating structure:
.context-network.mdcontext/ directoryThis skill generates:
.context-network.md - Discovery filecontext/ directory structure| Goes to File | Stays in Conversation |
|---|---|
| Directory structure | Diagnosis discussion |
| Template files | Coaching Q&A |
| Discovery file | Migration decisions |
| CLAUDE.md updates | Prioritization reasoning |
| Source Skill | Trigger | Action |
|---|---|---|
| context-retrospective | Gap findings | Run Maintenance Mode |
| skill-builder | New skill needs context | Run Bootstrap Mode |
| Trigger | Target Skill | Reason |
|---|---|---|
| Agent behavior problems persist after CN4 intervention | Review CLAUDE.md patterns | May need skill-level changes |
| Network mature, want continuous improvement | context-retrospective | Regular health checks |
| Skill | Relationship |
|---|---|
| context-retrospective | Post-hoc analysis feeds maintenance mode |
| skill-builder | Skills may need context network infrastructure |
User: "I'm starting a new TypeScript project and want to set up a context network."
Your approach:
.context-network.md and context/ structureWeekly Installs
115
Repository
GitHub Stars
37
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode95
codex88
gemini-cli87
claude-code83
github-copilot82
cursor77
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
50,900 周安装