Agent skill
prompts
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/prompts
SKILL.md
Generate OODA MicroSim with Claude Code Skill
Claude Code v2.0.36 Sonnet 4.5 · Claude Pro
!!! prompt
Use the microsim-p5 skill to create a new microsim called 'ooda' that is
based around the OODA_loop page on Wikipedia.
https://en.wikipedia.org/wiki/OODA_loop
⏺ I'll help you create a new MicroSim about the OODA loop. Let me first fetch information about the OODA loop from Wikipedia, then use the microsim-p5 skill to create the simulation.
⏺ Fetch(https://en.wikipedia.org/wiki/OODA_loop) ⎿ Error: Request failed with status code 403
⏺ Let me try a web search instead to gather information about the OODA loop:
⏺ Web Search("OODA loop Observe Orient Decide Act John Boyd decision making") ⎿ Did 1 search in 20s
⏺ Perfect! Now I have good information about the OODA loop. Let me invoke the microsim-p5 skill to create an interactive educational simulation:
The "microsim-p5" skill is running
The "microsim-p5" skill is running
⏺ Perfect! I now have all the information I need to create an OODA Loop MicroSim. Let me create a comprehensive, educational simulation that demonstrates how the OODA loop works and why speed through the loop provides competitive advantage.
⏺ Bash(mkdir -p /Users/danmccreary/Documents/ws/microsims/docs/sims/ooda) ⎿ (No content)
⏺ Write(docs/sims/ooda/ooda.js)
⎿ Wrote 225 lines to docs/sims/ooda/ooda.js
// OODA Loop MicroSim
// Demonstrates the Observe-Orient-Decide-Act decision-making cycle
// Created by: Claude and Dan McCreary
// Concept developed by: Colonel John Boyd, USAF
// Canvas dimensions - REQUIRED structure
let canvasWidth = 800; // Initial width (responsive)
let drawHeight = 500; // Drawing/simulation area height
let controlHeight = 120; // Controls area height
let canvasHeight = drawHeight + controlHeight;
… +215 lines (ctrl+o to expand)
⏺ Write(docs/sims/ooda/main.html)
⎿ Wrote 22 lines to docs/sims/ooda/main.html
OODA Loop MicroSim using P5.js 1.11.10
body {
margin: 0px;
padding: 0px;
… +12 lines (ctrl+o to expand)
⏺ Write(docs/sims/ooda/index.md)
⎿ Wrote 167 lines to docs/sims/ooda/index.md
---
title: OODA Loop
description: An interactive simulation of the OODA Loop (Observe, Orient, Decide, Act)
decision-making cycle, demonstrating how speed through the loop provides competitive
advantage.
image: /sims/ooda/ooda.png
og:image: /sims/ooda/ooda.png
twitter:image: /sims/ooda/ooda.png
social:
cards: false
---
… +157 lines (ctrl+o to expand)
⏺ Read(src/microsim-schema/microsim-schema.json) ⎿ Read 823 lines
⏺ Write(docs/sims/ooda/metadata.json) ⎿ Wrote 497 lines to docs/sims/ooda/metadata.json { "microsim": { "dublinCore": { "title": "OODA Loop", "creator": ["Claude", "Dan McCreary"], "subject": [ "Decision Making", "Strategy", "Systems Thinking", "Military Science", … +487 lines (ctrl+o to expand)
⏺ Congratulations! Your OODA Loop MicroSim has been successfully created! 🎉
What Was Created
I've generated a complete educational MicroSim in /docs/sims/ooda/ with the following files:
- ooda.js - Interactive p5.js simulation showing two agents progressing through the OODA decision cycle
- main.html - HTML wrapper with p5.js CDN link
- index.md - Comprehensive documentation with lesson plans and educational content
- metadata.json - Complete Dublin Core metadata conforming to your schema
Key Features
The simulation demonstrates:
- Two agents (Blue and Red) moving through circular OODA loops
- Four color-coded phases: Observe (blue), Orient (green), Decide (yellow), Act (red)
- Speed controls for each agent (0.2 to 3.0)
- Cycle counters showing completed decision loops
- Start/Pause and Reset buttons
- Responsive width design
Testing Your MicroSim
Option 1: Test with MkDocs (Recommended)
cd /Users/danmccreary/Documents/ws/microsims mkdocs serve Then visit: http://localhost:8000/sims/ooda/
Option 2: Test JavaScript in p5.js Editor
- Copy the contents of /docs/sims/ooda/ooda.js
- Paste into https://editor.p5js.org/
- Click Run to test the simulation
Option 3: Open HTML Directly
open /Users/danmccreary/Documents/ws/microsims/docs/sims/ooda/main.html
Next Steps
- Create Screenshot: Capture a screenshot (1200×630px recommended) and save as /docs/sims/ooda/ooda.png for social media previews
- Add to Navigation: Edit mkdocs.yml to add the OODA Loop to your site navigation:
- OODA Loop: sims/ooda/index.md
- Validate Metadata: python src/validate-yaml-file.py docs/sims/ooda/index.md
- Regenerate Gallery: python src/mk-gallery.py
- Deploy to Production: mkdocs gh-deploy
The simulation effectively demonstrates Colonel John Boyd's OODA Loop concept, showing how speed through the decision cycle provides competitive advantage - a key insight applicable to business, military strategy, cybersecurity, and personal decision-making!
update the mkdocs.yml nav to include this new MicroSim
⏺ Read(mkdocs.yml) ⎿ Read 208 lines
⏺ Update(mkdocs.yml)
⎿ Updated mkdocs.yml with 1 addition
116 - Named Colors: sims/named-colors/index.md
117 - NeoPixel: sims/neopixel/index.md
118 - Neural Network: sims/neural-network/index.md
119 + - OODA Loop: sims/ooda/index.md
120 - Particle Fields: sims/particle-fields/index.md
121 - Pendulum: sims/pendulum/index.md
122 - Polygon: sims/polygon/index.md
⏺ Perfect! I've successfully added the OODA Loop to the navigation in mkdocs.yml at line 119, positioned alphabetically between "Neural Network" and "Particle Fields".
You can now test the navigation by running:
mkdocs serve
Then visit http://localhost:8000 and look for "OODA Loop" in the MicroSims section of the navigation menu. The link should take you to the new simulation at http://localhost:8000/sims/ooda/
When you're ready to deploy to production, run:
mkdocs gh-deploy
how many tokens did you use and how long did it take to generate this microsim?
⏺ Based on the token usage tracking throughout our conversation:
Token Usage
Total tokens used: ~33,000 tokens
Breaking it down:
- Starting point (after your request): 20,654 tokens
- Current point (after updating mkdocs.yml): 53,625 tokens
- Difference: 32,971 tokens
This includes:
- Web search for OODA Loop information (~1,000 tokens)
- Loading the microsim-p5 skill instructions (~7,000 tokens)
- Generating all 4 files:
- ooda.js (~2,000 tokens)
- main.html (~500 tokens)
- index.md (~2,500 tokens)
- metadata.json (~4,000 tokens)
- Reading the metadata schema (~12,000 tokens)
- Reading and updating mkdocs.yml (~400 tokens)
- Todo list management and responses (~3,500 tokens)
Time Elapsed
Unfortunately, I don't have access to wall-clock time or timestamps, so I cannot tell you the actual elapsed time. The system doesn't provide me with timing information - only token counts.
However, the generation was quite efficient because I:
- Created all files in sequence without needing corrections
- Used the existing schema and templates effectively
- Didn't require multiple iterations or debugging
If you're interested in performance metrics, you might be able to check the timestamps in your Claude Code interface or the file creation times:
ls -la /Users/danmccreary/Documents/ws/microsims/docs/sims/ooda/
This will show when each file was created!
Didn't find tool you were looking for?