CtrlK
BlogDocsLog inGet started
Tessl Logo

update-visualizations

Analyze recent changes and update affected architecture visualizations

42

Quality

41%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/update-visualizations/SKILL.md
SKILL.md
Quality
Evals
Security

Update Visualizations

You are updating project visualizations (mermaid diagrams) based on recent changes. This skill works standalone — it can be used in any project, not just devflow.

Step 1: Locate Visualization Config

Check for visualization configuration in this order:

  1. .devflow/visualizations.json (project-specific)
  2. ~/.config/devflow/visualizations.json (global)
  3. If neither exists, look for common locations: docs/visualizations/, visualizations/, docs/diagrams/
  4. If no visualizations folder found, ask the user if they'd like to create one (default: docs/visualizations/)

Read the config to determine:

  • path: Where visualizations live
  • style: Which color palette and init settings to use (default: "devflow")
  • categories: Which subfolder categories exist

Step 2: Analyze Changes

Run git diff HEAD~1 (or git diff for unstaged changes) to understand what was modified.

If the user provided a description via $ARGUMENTS, use that as additional context for what changed.

Step 3: Read the Visualization Index

Read <viz-path>/README.md to understand:

  • What visualizations currently exist
  • Which categories are defined
  • The style guide being used

Step 4: Map Changes to Visualizations

For each changed file, determine which visualization(s) it might affect. Use these heuristics:

For devflow projects:

  • lib/services.sh, docker/docker-compose.ymlarchitecture/runtime-architecture.md
  • lib/sync.sh, MCP/skill config changes → architecture/sync-architecture.md
  • lib/work.sh, lib/worktree.sh, skill workflow changes → workflows/development-workflow.md
  • lib/init.sh, agent-deck config changes → integrations/agent-deck-integration.md
  • bin/devflow (new commands) → architecture/devflow-ecosystem.md
  • New skill/plugin → May need a new diagram in integrations/

For general projects:

  • New API endpoints → architecture/ diagrams
  • Database schema changes → architecture/data-model.md
  • New integrations/services → integrations/ diagrams
  • Workflow/process changes → workflows/ diagrams

Step 5: Update or Create Visualizations

For each affected visualization:

  1. Read the current file
  2. Identify what's outdated (missing nodes, wrong connections, stale labels)
  3. Update the mermaid diagrams to reflect the new reality
  4. Keep the style conventions from the README style guide:
    • YAML frontmatter with tags and related links
    • %%{init} blocks for spacing
    • Consistent classDef color palette
    • Horizontal rules between sections
    • Numbered section headings

If a visualization doesn't exist for a new component, create one in the appropriate subfolder using the style guide template.

Step 6: Create Default Visualizations (First Run)

If the visualization folder was just created (no existing diagrams), create these defaults:

architecture/system-overview.md

A high-level diagram showing the project's main components and how they connect. Analyze the project structure (package.json, directory layout, config files) to infer the architecture.

workflows/main-workflow.md

A diagram showing the primary workflow (e.g., request lifecycle, data pipeline, build process). Infer from the project type.

Step 7: Update the Index

If new files were created, update <viz-path>/README.md:

  • Add entries to the navigation table
  • Update the related links in frontmatter

Step 8: Commit

Stage and commit visualization changes:

git add <viz-path>/
git commit -m "docs: update visualizations for [brief description]"

$ARGUMENTS

Repository
AndreJorgeLopes/devflow
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.