google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
microsim-add-icons
Add clickable Creative Commons license and fullscreen icons to an existing MicroSim's control region. Use this skill when enhancing a MicroSim with navigation icons in the lower right corner. Adds approximately 40 lines of code for icon functionality.
Full skill instructions
Add clickable Creative Commons license and fullscreen navigation icons to the control region of an existing p5.js MicroSim. The icons appear in the lower right corner and use distance-based click detection. This adds approximately 40 lines of code to the simulation.
Use this skill when:
Ask the user which MicroSim JavaScript file to modify, or identify it from context. The file should be a p5.js MicroSim following the standard pattern with:
setup() functiondraw() functionwindowResized() functionRead the entire JavaScript file to understand its structure and identify where to add the icon code.
Add the following variables to the global variables section, after the existing slider variables:
// Icon variables
let iconSize = 24;
let iconMargin = 5;
let ccIconX, ccIconY; // Creative Commons icon position
let fsIconX, fsIconY; // Fullscreen icon position
Also add or update the sliderRightMargin variable:
let sliderRightMargin = 70;
This reserves space on the right side of sliders for the icons.
Add the complete drawIcons() function after the draw() function:
function drawIcons() {
// Calculate icon positions (right to left)
fsIconX = canvasWidth - iconMargin - iconSize/2;
fsIconY = drawHeight + controlHeight/2;
ccIconX = fsIconX - iconSize - iconMargin;
ccIconY = fsIconY;
// Draw Creative Commons icon
fill('black');
noStroke();
textAlign(CENTER, CENTER);
textSize(20);
text('ⓒ', ccIconX, ccIconY);
// Draw Fullscreen icon
text('⛶', fsIconX, fsIconY);
}
Add the following code at the end of the draw() function, just before the closing brace:
// Draw icons in lower right corner of control region
drawIcons();
}
Add the complete mousePressed() function after the drawIcons() function:
function mousePressed() {
// Check if Creative Commons icon was clicked
let distCC = dist(mouseX, mouseY, ccIconX, ccIconY);
if (distCC < iconSize/2) {
// Get the base URL (remove '/sims/icons/main.html' from current URL)
let baseUrl = window.location.href.split('/sims/')[0];
window.open(baseUrl + '/license/', '_blank');
return;
}
// Check if Fullscreen icon was clicked
let distFS = dist(mouseX, mouseY, fsIconX, fsIconY);
if (distFS < iconSize/2) {
// Open main.html in a new window/tab (same behavior as the fullscreen button)
window.open('main.html', '_blank');
return;
}
}
Update the windowResized() function to use sliderRightMargin when resizing sliders:
function windowResized() {
// Update canvas size when the container resizes
updateCanvasSize();
resizeCanvas(containerWidth, containerHeight);
// resize the speed slider and any other sliders here
speedSlider.size(canvasWidth - sliderLeftMargin - sliderRightMargin);
redraw();
}
If there are multiple sliders, update all slider size calculations to use sliderRightMargin.
If the slider size is set in setup(), update it to use sliderRightMargin:
speedSlider.size(canvasWidth - sliderLeftMargin - sliderRightMargin);
After making all changes:
Adding icons increases the JavaScript file size by approximately 40 lines:
drawIcons()drawIcons() functionmousePressed() functionThe icons can be omitted from minimal MicroSims to reduce file size.
Creative Commons Icon (ⓒ):
/license/ page in a new tabFullscreen Icon (⛶):
main.html in a new window/tabBoth icons use distance-based click detection with dist() function, creating circular clickable regions with a radius of iconSize/2 (12 pixels).
Different Icon Symbols:
Replace the Unicode characters ⓒ and ⛶ with other symbols as needed:
Additional Icons: To add more icons, follow the same pattern:
helpIconX, helpIconY)drawIcons() (move left by iconSize + iconMargin)drawIcons()mousePressed()sliderRightMargin by 30 pixels per additional iconCustom Actions:
Modify the mousePressed() function to perform different actions:
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.