Back to skills
SKILL.md
Sight
ASecurityUse when the user says 'draw', 'diagram', 'visualize', 'architecture', or needs a visual overview of code structure.
- 423 stars
- 0 votes
- 0 copies
- 1 view
- Added June 5, 2026
Works with
Security analysis
100/100npx -y skills add cwinvestments/memstack --skill sight --agent claude-codeAre you the author of Sight?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cwinvestments-sight)---
name: sight
description: "Use when the user says 'draw', 'diagram', 'visualize', 'architecture', or needs a visual overview of code structure."
version: 1.0.0
---
# ποΈ Sight β The Hidden Becomes Clear
*Generate Mermaid diagrams showing project architecture, schema, and data flow.*
## Activation
When this skill activates, output:
`ποΈ Sight β The hidden becomes clear.`
Then execute the protocol below.
## Context Guard
| Context | Status |
|---------|--------|
| **User asks for a diagram or visualization** | ACTIVE β generate diagram |
| **User says "draw", "diagram", "architecture"** | ACTIVE β generate diagram |
| **User asks to "show" or "map" the structure** | ACTIVE β generate diagram |
| **Discussing diagrams conceptually** | DORMANT β do not activate |
| **User is looking at existing diagrams** | DORMANT β do not activate |
## Protocol
1. **Determine diagram type** from context:
- "database" / "schema" β `erDiagram`
- "api" / "endpoints" β `flowchart TD`
- "components" / "pages" β `graph TD`
- "architecture" / "structure" β `flowchart TD` (system overview)
- "flow" / "process" β `sequenceDiagram`
2. **Scan the relevant code:**
- For DB: read migration files in `database/`
- For API: list files in `src/app/api/`
- For pages: list files in `src/app/`
- For architecture: read package.json, directory structure, configs
3. **Generate Mermaid diagram** as a code block
4. **Optionally save** to `docs/diagrams/{name}.mermaid`
## Inputs
- What to visualize (database, API, components, architecture)
- Project directory
## Outputs
- Mermaid diagram code block ready to render
- Optional saved .mermaid file
## Example Usage
**User:** "draw the AdminStack database schema"
```
ποΈ Sight β The hidden becomes clear.
β```mermaid
erDiagram
accounts ||--o{ organizations : "has"
accounts ||--o{ cc_sessions : "tracks"
organizations ||--o{ projects : "contains"
organizations ||--o{ contacts : "stores"
organizations ||--o{ orders : "processes"
accounts {
uuid id PK
text email
boolean is_platform_admin
}
cc_sessions {
uuid id PK
text name
text status
}
β```
```
## Level History
- **Lv.1** β Base: Mermaid diagram generation from codebase analysis. (Origin: MemStack v1.0, Feb 2026)
- **Lv.2** β Enhanced: Added YAML frontmatter, context guard, activation message, diagram type detection. (Origin: MemStack v2.0 MemoryCore merge, Feb 2026)
Attribution
Comments
Loading commentsβ¦
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.