Skip to content
Back to skills

Sight

ASecurity

Use 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
ai-agentsapidatabase

Works with

  • api

Security analysis

A100/100

Scanned June 5, 2026

npx -y skills add cwinvestments/memstack --skill sight --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sight?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sight
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/cwinvestments-sight/badge)](https://www.skillsdirectory.com/skills/cwinvestments-sight)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.