← Back to list

ctx
by c-daly
Enforcement system for agent-based workflows in Claude Code
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: ctx description: View and manage hierarchical context for the current directory user_invocable: true
/ctx - Hierarchical Context Viewer
Shows the resolved context for the current working directory, aggregated from all levels of the hierarchy.
Usage
/ctx # Show resolved context
/ctx tree # Show context hierarchy as tree
/ctx edit # Edit context at current scope
What This Shows
Context is resolved by walking up from the current directory:
- Feature/Component level -
.context/CONTEXT.mdin current or parent dirs - Repo level -
.claude/CONTEXT.mdat repository root - Project level - Context above the repo
- User level -
~/.claude/CONTEXT.mdfor global preferences
Each level can:
- Inherit from parent (default)
- Override specific sections with
@override: section_name - Ignore parent sections with
@ignore: section_name
Implementation
When invoked, run:
python3 ~/.claude/plugins/agent-swarm/ctx/resolver.py resolve .
For tree view:
python3 ~/.claude/plugins/agent-swarm/ctx/resolver.py tree .
Context File Format
# Context: [Scope Name]
@inherit: true # Default, inherit from parent
@override: conventions # Override this section completely
@priority: high # Mark as high priority
## Purpose
What this scope is for.
## Conventions
Coding standards for this scope.
## Patterns
Common patterns used here.
## Pitfalls
Known issues to avoid.
Creating Context
To add context at current scope:
- Create
.context/CONTEXT.mdin the directory - Add relevant sections
- Use
@overridefor sections that shouldn't merge with parent
Memory vs Context
- CONTEXT.md - Static, intentionally written knowledge
- MEMORY.md - Distilled learnings from sessions (see
/distill)
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon