.clinerules.sample
Context Networks: A collaborative framework for human-AI knowledge management focused on relationships between information rather than just storage. Includes guides and templates for creating evolving knowledge systems with AI partners.
Install / Use
npx skills add jwynia/context-networksInstalls into whichever agent you are using.
.clinerules
Cline rules
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Skill content
View source on GitHubContext Network Integration Rules
Critical Domain Boundary
There are two distinct information domains in projects:
-
Context Network Domain (Team Memory)
- Purpose: Planning, coordination, knowledge preservation
- Audience: Agents, maintainers, internal team
- Contains: ALL planning documents, architecture decisions, design discussions
-
Project Artifact Domain (Build Artifacts)
- Purpose: Execution by systems, direct use by end-users
- Audience: Runtime environments, users, external developers
- Contains: Source code, configuration files, public documentation
CRITICAL RULE: NEVER create planning documents, architecture diagrams, or design discussions in the project root or artifact domain. These MUST be placed in the context network.
Discovery and Initialization
-
At the start of each task, check for a
.context-network.mddiscovery file in the project root. -
If a
.context-network.mdexists:- Read the file to determine the actual location of the context network
- The location may be specified in a "Location" section
- The context network could be within the project in a specific directory, in a separate repository, or in a shared location
-
If no
.context-network.mdexists, create one with this structure:# Project Context Network ## Location The context network for this project is located at: ./context-network/ ## Purpose This context network contains all planning documents, architectural decisions, and team coordination information. ## Usage Guidelines - ALL planning documents, architecture diagrams, and design discussions MUST be stored within the context network - Do NOT place planning or architecture documents in the project root - Project files outside the context network should only be files consumed by build systems, deployment tools, or end users ## Navigation See the context network's navigation guide at [LOCATION]/discovery.md -
Then create the context network structure in the specified location (defaulting to "./context-network/" if nothing else was specified):
[LOCATION]/ ├── discovery.md # Navigation guide for the network ├── foundation/ # Core project information │ ├── project_definition.md # Main project purpose and goals │ ├── architecture.md # System architecture overview │ └── principles.md # Guiding principles and standards ├── domains/ # Domain-specific information │ ├── domain_a/ # Information for domain A │ └── domain_b/ # Information for domain B ├── processes/ # Process documentation │ ├── development.md # Development workflows │ ├── testing.md # Testing procedures │ └── deployment.md # Deployment processes ├── decisions/ # Architecture and design decisions │ ├── decision_001.md # Individual decision records │ └── decision_index.md # Index of all decisions ├── planning/ # Planning documents │ ├── roadmap.md # Project roadmap │ └── milestones.md # Milestone definitions ├── cross-domain/ # Cross-cutting concerns │ ├── dependencies.md # Cross-component dependencies │ └── interfaces.md # Interface definitions └── meta/ # Information about the network itself ├── updates.md # Record of network changes └── maintenance.md # Network maintenance procedures -
Notify the user when creating a new context network.
Context-Aware Workflow
Before Task Execution
- Read the
.context-network.mddiscovery file - Navigate to the actual context network location it specifies
- Review the context network's discovery.md navigation guide
- Load relevant foundation documents into your working context
- Identify information nodes relevant to your current task
- Note recent changes documented in meta/updates.md that might impact your work
During Task Execution
- Maintain awareness of how your work relates to the established network
- Reference specific information nodes when making decisions
- Follow documented navigation protocols within the network
- Maintain consistency with established terminology and patterns
- Document conflicts between information nodes when encountered
After Task Completion
- Update appropriate information nodes with new content
- Document new relationships discovered during the task
- Strengthen existing connections that were validated
- Monitor file sizes after updates, especially for frequently updated files:
- If a file exceeds 1000 lines or 50KB, implement hierarchical organization
- For growing files like update logs, consider proactive hierarchical organization
- Follow the hierarchical organization pattern when breaking down large files
- Update meta/updates.md with your changes (or the appropriate index file if hierarchical)
- For significant changes to the network structure, update the discovery.md navigation guide
Information Classification System
When classifying information nodes, use these dimension labels:
-
Domain: [Primary knowledge area]
- Valid values: Frontend, Backend, Design, DevOps, Documentation, Business, etc.
-
Stability: [Change frequency expectation]
- Static: Fundamental principles unlikely to change
- Semi-stable: Established patterns that evolve gradually
- Dynamic: Frequently changing information
-
Abstraction: [Detail level]
- Conceptual: High-level ideas and principles
- Structural: Organizational patterns and frameworks
- Detailed: Specific implementations and examples
-
Confidence: [Information reliability]
- Established: Verified and reliable information
- Evolving: Partially validated but subject to refinement
- Speculative: Exploratory ideas requiring validation
Standard Information Node Structure
Use this structure for all information nodes:
# [Node Title]
## Purpose
[Concise explanation of this node's function]
## Classification
- **Domain:** [Primary knowledge area]
- **Stability:** [Static/Semi-stable/Dynamic]
- **Abstraction:** [Conceptual/Structural/Detailed]
- **Confidence:** [Established/Evolving/Speculative]
## Content
[Primary information organized appropriately]
## Relationships
- **Parent Nodes:** [Broader context nodes]
- **Child Nodes:** [More detailed nodes]
- **Related Nodes:** [Nodes with associative connections]
- [Node Name] - [Relationship Type] - [Brief description]
## Navigation Guide
- **When to Use:** [Access scenarios]
- **Next Steps:** [Typical navigation paths]
- **Related Tasks:** [Activities where relevant]
## Metadata
- **Created:** [Date]
- **Last Updated:** [Date]
- **Updated By:** [Agent ID/Task]
## Change History
- [Date]: [Brief description of changes]
Relationship Types Reference
Use these standardized relationship types:
-
Hierarchical Relationships:
is-parent-of: Node contains broader contextis-child-of: Node provides specific detailsis-version-of: Node represents a variant
-
Associative Relationships:
relates-to: General connectiondepends-on: Node requires the targetimplements: Node concretely implements targetextends: Node builds upon targetcontradicts: Node presents opposing viewcomplements: Node works alongside target
-
Cross-Domain Relationships:
interfaces-with: Node connects across domainstranslates-to: Equivalent concept in different domainimpacts: Changes to node affect target
Context Window Management
-
When context limitations prevent loading all relevant information:
- Prioritize task-critical information in your limited context
- Maintain foundation knowledge while working with specific details
- Create a multi-step process with explicit transitions
- Document what information was excluded due to limitations
-
For multi-agent workflows:
- Include explicit context handoff protocols
- Document which context elements were used and which were modified
- Reference specific nodes that future agents should consult
Change Documentation
After completing a task, update the meta/updates.md file with a changelog entry:
## Context Network Update: [Task Name] - [Date]
### Information Nodes Modified
- [Node Name]: [Brief description of changes]
- **Classification Changes**: [Updates to metadata]
- **Content Changes**: [Content modifications]
- **Structure Changes**: [Organization changes]
### New Relationships Established
- [Source Node] → [Relationship Type] → [Target Node]: [Description]
### Relationships Modified
- [Source Node] → [Relationship Type] → [Target Node]: [Description]
### Navigation Implications
- [Task Pattern]: [Navigation path changes]
### Follow-up Recommendations
- [Recommendation]: [Rationale and suggested action]
Verification Process
Before completing a task, verify the following:
- Bidirectional relationship consistency is maintained
- Navigation paths remain functional after your changes
- Modified information maintains appropriate classification
- Your changes support the network's overall coherence
- The boundary between context network and project artifacts is preserved:
- ALL planning documents, architecture diagrams, and design discussions are in the context network
- ONLY code, configuration, and implementation files are in the project artifact domain
- NO planning or architecture documents in the project root
Mode-Specific Guidelines
Architect/Planning Mode
If you are operating in architect or planning mode:
CRITICAL WARNING: ALL outputs you create MUST be placed within the context network. NEVER create planning or architecture documents in the project root.
Follow this path structure:
- Place system designs in foundation/architecture.md or domains/*/architecture.md
- Place implementation plans in planning/
- Place architecture decision records in decisions/
- Place process documentation in processes/
Implementation Mode
If you are operating in implementation mode:
- When implementing code, place files in their appropriate project locations
- When documenting implementation decisions or design patterns, place these in the context network
- Before implementation, ALWAYS check the context network for relevant design documents
- Update the context network with any implementation decisions that deviate from the original design
Related Skills
career-ops
72.4kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
ai-job-search
43.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
guizang-ppt-skill
26.7kAI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts, social covers, and a WebGL/low-power presentation runtime.
Security Score
Audited on Invalid Date
