ワンクリックで
ww-architecture
Architecture documentation generation and maintenance for World Weaver
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Architecture documentation generation and maintenance for World Weaver
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Comprehensive SessionEnd hook that syncs and synthesizes all daily completions, notes, todos, and conversation data into unified daily notes and knowledge bases.
Unified worklog system. Synthesizes session work into daily markdown files with clean bullet points. Supports weekly rollups for Slack #progress sharing. Replaces fragmented checkpoint/session-state/weekly-notes systems.
Comprehensive pre-submission review orchestrator. Coordinates methodology checks, bias detection, AI text detection, statistical validation, and reporting guideline compliance for journal submissions.
Kymera Systems brand design - Jarvis-inspired HUD aesthetic with dark and light modes. Use for branded UI, dashboards, presentations, and technical artifacts.
Deep analysis workflows for World Weaver memory systems, code, and architecture
Trigger and manage World Weaver memory consolidation
| name | ww-architecture |
| description | Architecture documentation generation and maintenance for World Weaver |
| version | 1.0.0 |
| allowed-tools | ["Bash","Read","Write","Grep","Glob"] |
Architecture documentation generation and maintenance for World Weaver.
This skill provides architecture documentation capabilities:
Invoke this skill when:
Parse Python modules and generate docs:
# Find all modules
find /home/aaron/ww/src/ww -name "*.py" -not -name "__init__.py"
# Extract docstrings
python -c "
import ast
import sys
with open(sys.argv[1]) as f:
tree = ast.parse(f.read())
module_doc = ast.get_docstring(tree)
print(f'# Module: {sys.argv[1]}')
print(module_doc or 'No module docstring')
for node in ast.walk(tree):
if isinstance(node, ast.ClassDef):
print(f'## Class: {node.name}')
print(ast.get_docstring(node) or 'No class docstring')
elif isinstance(node, ast.FunctionDef):
print(f'### Function: {node.name}')
print(ast.get_docstring(node) or 'No function docstring')
" "$file"
Generate module dependency graph:
import ast
from pathlib import Path
def extract_imports(file_path):
with open(file_path) as f:
tree = ast.parse(f.read())
imports = []
for node in ast.walk(tree):
if isinstance(node, ast.Import):
for alias in node.names:
imports.append(alias.name)
elif isinstance(node, ast.ImportFrom):
if node.module:
imports.append(node.module)
return imports
# Build dependency graph
dependencies = {}
for py_file in Path('/home/aaron/ww/src/ww').rglob('*.py'):
module = str(py_file.relative_to('/home/aaron/ww/src'))
dependencies[module] = extract_imports(py_file)
Generate architecture diagrams:
## System Architecture
\`\`\`mermaid
graph TB
subgraph Plugin["WW Plugin"]
Skills[Skills]
Commands[Commands]
Hooks[Hooks]
Agents[Agents]
end
subgraph MCP["MCP Server"]
Gateway[Gateway]
Episodic[Episodic Store]
Semantic[Semantic Store]
Procedural[Procedural Store]
end
subgraph Storage["Storage Layer"]
Neo4j[(Neo4j)]
Qdrant[(Qdrant)]
end
Plugin --> Gateway
Gateway --> Episodic
Gateway --> Semantic
Gateway --> Procedural
Episodic --> Qdrant
Semantic --> Neo4j
Semantic --> Qdrant
Procedural --> Neo4j
\`\`\`
Generate API docs from MCP tools:
# Extract MCP tool definitions
tools = [
("create_episode", "Store autobiographical event"),
("recall_episodes", "Search episodes by query"),
("create_entity", "Add knowledge graph node"),
("semantic_recall", "Search knowledge graph"),
("create_skill", "Store procedural pattern"),
# ... etc
]
# Generate OpenAPI-style docs
for name, description in tools:
print(f"""
### mcp__ww-memory__{name}
**Description**: {description}
**Parameters**:
| Name | Type | Required | Description |
|------|------|----------|-------------|
| ... | ... | ... | ... |
**Returns**: ...
**Example**:
\`\`\`python
mcp__ww-memory__{name}(...)
\`\`\`
""")
# {Component Name}
## Overview
{Brief description}
## Responsibilities
- {Responsibility 1}
- {Responsibility 2}
## Dependencies
- {Dependency 1}: {Why needed}
- {Dependency 2}: {Why needed}
## Interfaces
### Public API
\`\`\`python
{method signatures}
\`\`\`
### Events Emitted
- {Event 1}: {When/why}
### Events Consumed
- {Event 1}: {From where}
## Data Structures
### {Structure Name}
\`\`\`python
{structure definition}
\`\`\`
## Configuration
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| ... | ... | ... | ... |
## Error Handling
{Error handling strategy}
## Testing
{Testing approach}
# ADR-{number}: {Title}
## Status
{Proposed | Accepted | Deprecated | Superseded}
## Context
{What is the issue that we're seeing that is motivating this decision?}
## Decision
{What is the change that we're proposing and/or doing?}
## Consequences
{What becomes easier or more difficult to do because of this change?}
### Positive
- {Benefit 1}
### Negative
- {Drawback 1}
### Neutral
- {Tradeoff 1}
Generated documentation:
/home/aaron/ww/docs/architecture/ - Architecture docs/home/aaron/ww/docs/api/ - API reference/home/aaron/ww/docs/adr/ - Decision records/home/aaron/mem/WW_ARCHITECTURE.md - OverviewCheck documentation accuracy:
# Find undocumented public functions
grep -r "^def " /home/aaron/ww/src/ww --include="*.py" | while read line; do
# Check if docstring exists
...
done
# Find stale documentation references
# Check if mentioned files still exist
grep -r "src/ww/" /home/aaron/ww/docs/ | while read line; do
path=$(echo "$line" | grep -oP 'src/ww/\S+\.py')
if [ ! -f "/home/aaron/ww/$path" ]; then
echo "Stale reference: $path"
fi
done
This skill integrates with:
If documentation generation fails: