Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Creates and validates agent skills using Test-Driven Development — write test scenarios, baseline behavior, then the skill itself.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
graphviz-conventions.dot
1digraph STYLE_GUIDE {2// The style guide for our process DSL, written in the DSL itself34// Node type examples with their shapes5subgraph cluster_node_types {6label="NODE TYPES AND SHAPES";78// Questions are diamonds9"Is this a question?" [shape=diamond];1011// Actions are boxes (default)12"Take an action" [shape=box];1314// Commands are plaintext15"git commit -m 'msg'" [shape=plaintext];1617// States are ellipses18"Current state" [shape=ellipse];1920// Warnings are octagons21"STOP: Critical warning" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];2223// Entry/exit are double circles24"Process starts" [shape=doublecircle];25"Process complete" [shape=doublecircle];2627// Examples of each28"Is test passing?" [shape=diamond];29"Write test first" [shape=box];30"npm test" [shape=plaintext];31"I am stuck" [shape=ellipse];32"NEVER use git add -A" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];33}3435// Edge naming conventions36subgraph cluster_edge_types {37label="EDGE LABELS";3839"Binary decision?" [shape=diamond];40"Yes path" [shape=box];41"No path" [shape=box];4243"Binary decision?" -> "Yes path" [label="yes"];44"Binary decision?" -> "No path" [label="no"];4546"Multiple choice?" [shape=diamond];47"Option A" [shape=box];48"Option B" [shape=box];49"Option C" [shape=box];5051"Multiple choice?" -> "Option A" [label="condition A"];52"Multiple choice?" -> "Option B" [label="condition B"];53"Multiple choice?" -> "Option C" [label="otherwise"];5455"Process A done" [shape=doublecircle];56"Process B starts" [shape=doublecircle];5758"Process A done" -> "Process B starts" [label="triggers", style=dotted];59}6061// Naming patterns62subgraph cluster_naming_patterns {63label="NAMING PATTERNS";6465// Questions end with ?66"Should I do X?";67"Can this be Y?";68"Is Z true?";69"Have I done W?";7071// Actions start with verb72"Write the test";73"Search for patterns";74"Commit changes";75"Ask for help";7677// Commands are literal78"grep -r 'pattern' .";79"git status";80"npm run build";8182// States describe situation83"Test is failing";84"Build complete";85"Stuck on error";86}8788// Process structure template89subgraph cluster_structure {90label="PROCESS STRUCTURE TEMPLATE";9192"Trigger: Something happens" [shape=ellipse];93"Initial check?" [shape=diamond];94"Main action" [shape=box];95"git status" [shape=plaintext];96"Another check?" [shape=diamond];97"Alternative action" [shape=box];98"STOP: Don't do this" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];99"Process complete" [shape=doublecircle];100101"Trigger: Something happens" -> "Initial check?";102"Initial check?" -> "Main action" [label="yes"];103"Initial check?" -> "Alternative action" [label="no"];104"Main action" -> "git status";105"git status" -> "Another check?";106"Another check?" -> "Process complete" [label="ok"];107"Another check?" -> "STOP: Don't do this" [label="problem"];108"Alternative action" -> "Process complete";109}110111// When to use which shape112subgraph cluster_shape_rules {113label="WHEN TO USE EACH SHAPE";114115"Choosing a shape" [shape=ellipse];116117"Is it a decision?" [shape=diamond];118"Use diamond" [shape=diamond, style=filled, fillcolor=lightblue];119120"Is it a command?" [shape=diamond];121"Use plaintext" [shape=plaintext, style=filled, fillcolor=lightgray];122123"Is it a warning?" [shape=diamond];124"Use octagon" [shape=octagon, style=filled, fillcolor=pink];125126"Is it entry/exit?" [shape=diamond];127"Use doublecircle" [shape=doublecircle, style=filled, fillcolor=lightgreen];128129"Is it a state?" [shape=diamond];130"Use ellipse" [shape=ellipse, style=filled, fillcolor=lightyellow];131132"Default: use box" [shape=box, style=filled, fillcolor=lightcyan];133134"Choosing a shape" -> "Is it a decision?";135"Is it a decision?" -> "Use diamond" [label="yes"];136"Is it a decision?" -> "Is it a command?" [label="no"];137"Is it a command?" -> "Use plaintext" [label="yes"];138"Is it a command?" -> "Is it a warning?" [label="no"];139"Is it a warning?" -> "Use octagon" [label="yes"];140"Is it a warning?" -> "Is it entry/exit?" [label="no"];141"Is it entry/exit?" -> "Use doublecircle" [label="yes"];142"Is it entry/exit?" -> "Is it a state?" [label="no"];143"Is it a state?" -> "Use ellipse" [label="yes"];144"Is it a state?" -> "Default: use box" [label="no"];145}146147// Good vs bad examples148subgraph cluster_examples {149label="GOOD VS BAD EXAMPLES";150151// Good: specific and shaped correctly152"Test failed" [shape=ellipse];153"Read error message" [shape=box];154"Can reproduce?" [shape=diamond];155"git diff HEAD~1" [shape=plaintext];156"NEVER ignore errors" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];157158"Test failed" -> "Read error message";159"Read error message" -> "Can reproduce?";160"Can reproduce?" -> "git diff HEAD~1" [label="yes"];161162// Bad: vague and wrong shapes163bad_1 [label="Something wrong", shape=box]; // Should be ellipse (state)164bad_2 [label="Fix it", shape=box]; // Too vague165bad_3 [label="Check", shape=box]; // Should be diamond166bad_4 [label="Run command", shape=box]; // Should be plaintext with actual command167168bad_1 -> bad_2;169bad_2 -> bad_3;170bad_3 -> bad_4;171}172}