/cogni-portfolio:portfolio-architecturefrom cogni-portfolio
Generates an interactive Excalidraw architecture diagram showing products and features in a clean hierarchy. Useful for visualizing portfolio structure, feature maps, and product relationships.
Ships in cogni-portfolio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate an interactive Excalidraw diagram that visualizes the product-feature hierarchy of a cogni-portfolio project. Products appear as large container rectangles with features nested directly inside — no category groupings, no cross-product bridges. The diagram is editable on the live canvas, and user changes are preserved across runs.
Read portfolio.json in the current working directory or a user-specified path. If no portfolio project is found, tell the user to run the portfolio-setup skill first.
Read portfolio.json for the language field — if present, communicate with the user in that language. Technical terms, skill names, and CLI commands remain in English.
Check whether {project-dir}/output/architecture.excalidraw exists.
If it exists — import it onto the canvas via import_scene(filePath="...", mode="replace") so the user's previous edits are visible. Then offer options:
For option (b): read products/features JSON, call query_elements to find existing elements by their IDs (product-{slug}, feature-{slug}), compute the diff, add only missing elements using the layout from Step 4 (appending to the right of existing products).
For option (c): iterate feature elements on canvas, call update_element to change backgroundColor and strokeColor where readiness has changed.
If it does not exist — proceed to Step 3 (fresh generation).
Read all products/*.json and features/*.json from the project directory.
Build two data structures:
{slug, name, maturity, revenue_model} sorted by nameproduct_slug → array of {slug, name, purpose, readiness, sort_order} sorted by sort_order then by slugImportant: Ignore the category field on features. Features appear directly inside their product — no category sub-groupings.
Compute summary stats: product count, feature count, readiness breakdown (GA/Beta/Planned).
For fresh generation, call clear_canvas first.
| Parameter | Value |
|---|---|
| Canvas padding | 60px |
| Product width | 300px |
| Product gap | 40px horizontal |
| Product header height | 60px (name + metadata) |
| Feature width | 260px (20px inset each side) |
| Feature height | 56px when any feature in project has purpose, otherwise 40px |
| Feature gap | 12px vertical |
| Feature top margin | 20px below header |
Product at index i:
x = 60 + i × (300 + 40)y = 60width = 300height = 60 + 20 + (feature_count × (40 + 12)) + 20 (bottom padding)Determine feature_height once for the project: if any feature across all products has a purpose field, use 56px; otherwise use 40px. This keeps all feature rectangles the same height for visual consistency.
Feature at index j inside product at index i:
x = product_x + 20y = product_y + 60 + 20 + j × (feature_height + 12)width = 260height = feature_height| Readiness | backgroundColor | strokeColor | strokeStyle |
|---|---|---|---|
| ga | #bbf7d0 | #166534 | solid |
| beta | #fef08a | #92400e | solid |
| planned | #e5e7eb | #6b7280 | dashed |
Product rectangles: backgroundColor: "#f8fafc", strokeColor: "#334155", strokeWidth: 2
Use roughness: 0 and fontFamily: 2 (sans-serif) for a clean, professional look.
For each product, create these elements via batch_create_elements:
type: "rectangle", id: "product-{slug}"type: "text", bold, fontSize: 20, centered in header, id: "product-label-{slug}"type: "text", fontSize: 14, maturity + revenue_model below name, color #64748b, id: "product-meta-{slug}"type: "rectangle", colored by readiness, id: "feature-{slug}"type: "text", fontSize: 16, vertically centered at y + 8 when purpose exists or vertically centered when absent, id: "feature-label-{slug}"purpose field exists) — type: "text", fontSize: 12, color #64748b, positioned at y + 30 within the feature rectangle, id: "feature-purpose-{slug}". When purpose is absent, omit this element.After creating all elements for one product, call group_elements(elementIds=[...]).
Unassigned features (product_slug not matching any product): place in a final column with a red-bordered rectangle titled "Unassigned Features".
After all products are rendered, call snapshot_scene(name="architecture-complete").
get_canvas_screenshot and display itAsk the user: "Would you like to make any changes, or shall I save the diagram?"
update_element/delete_element/create_element, or let them edit directly on the canvasexport_scene(filePath="{project-dir}/output/architecture.excalidraw")describe_scene, write the .excalidraw JSON via Write tool:
{
"type": "excalidraw",
"version": 2,
"source": "portfolio-architecture",
"elements": [...],
"appState": {"viewBackgroundColor": "#ffffff"}
}
export_to_excalidraw_url for a shareable linkRun $CLAUDE_PLUGIN_ROOT/scripts/project-status.sh <project-dir> to determine project state. Then present a context-aware menu — always offer the core options, plus conditional options based on data:
Always available:
products skillfeatures skilldashboard-refresher agent with open_browser: trueoutput/architecture.excalidrawConditional (show when relevant):
purpose field. Say: "X of Y features are missing purpose statements. Adding them would make this diagram more informative for customers. Want me to draft them?" Delegate to the features skill.features skill quality completion gate.propositions skill.portfolio-resume skill for a full status overview.$CLAUDE_PLUGIN_ROOT/references/data-model.md for complete entity schemasWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cogni-work/insight-wave --plugin cogni-portfolio21 skills in this plugin
/competeAnalyze competitors for portfolio propositions — competitive landscape,
battle cards, positioning, differentiation. Use whenever the user mentions
competitors, competitive analysis, "who else does this", SWOT, win/loss,
how a proposition stacks up, or wants to understand competitive positioning
in a market — even if they don't say "compete" explicitly.
/customersCreate ideal customer profiles and buyer personas per target market.
Use whenever the user mentions customer profiles, ICP, buyer persona,
buying center, target customer, "who buys this", decision-makers,
buying committee, purchase journey, or wants to understand the people
behind a market — even if they don't say "customer" explicitly.
/featuresDefine and manage market-independent product features (IS layer of FAB).
Use whenever the user mentions features, capabilities, product specs,
"what does it do", feature extraction, feature inventory, or wants to
break a product into its component capabilities — even if they don't
say "feature" explicitly.
Also use for deep dive on a single feature: "deep dive on X", "research feature X",
"competitive landscape for X", "workshop feature X", "strengthen differentiation for X",
"how does X compare to competitors", "what does the market say about X",
"explore documents about feature X", "read this document and improve feature X",
"Differenzierung schärfen für X", "Wettbewerbsanalyse für Feature X" —
even if they don't say "deep dive" explicitly.
/marketsDiscover, evaluate, and size target markets for the portfolio.
Use whenever the user mentions target markets, market segments, TAM SAM SOM,
market sizing, "which markets to enter", market selection, addressable market,
segmentation, or wants to define who they're selling to — even if they don't
say "market" explicitly.
/packagesBundle solutions into sellable packages per Product x Market combination.
Use whenever the user mentions packages, bundles, packaging, "what does the customer buy",
combined offering, product bundle, tier design, package pricing, "assemble solutions",
or wants to group feature-level solutions into market-ready offerings —
even without saying "package".
/portfolio-canvasBootstrap a cogni-portfolio project from a Lean Canvas or Business Model Canvas.
Use whenever the user mentions a lean canvas, business model canvas, startup portfolio,
founding-stage business, "I have a canvas", "bootstrap from canvas", MVP planning,
or wants to populate their portfolio from a structured business hypothesis document —
even if they don't say "canvas" explicitly. Also trigger when the user has a markdown
file with numbered sections like Problem, Customer Segments, Solution, Revenue Streams.
Other plugins' skills for the same job