Skip to content

Instantly share code, notes, and snippets.

View bermudi's full-sized avatar

Daniel Bermúdez bermudi

View GitHub Profile
---
name: create-project-agentsmd
description: >
Generate a well-structured AGENTS.md (or CLAUDE.md, .cursorrules, copilot-instructions.md)
instruction file for a project. Use when the user asks to "create an AGENTS.md", "set up
agent instructions", "write a CLAUDE.md", "add project context for AI", "generate instruction
file", or mentions configuring any AI coding agent's behavior for their project. Produces
instruction files that encode goals and shape — not implementation details — so they stay
accurate as the codebase evolves.
license: Apache-2.0
@bermudi
bermudi / generate_toc.py
Created November 6, 2025 03:07
Generate TOC for Markdown file with navigation similar to those in old game FAQs
#!/usr/bin/env python3
"""
Script to generate a table of contents for a Markdown document.
Usage: python generate_toc.py <input_file> <output_file>
This script:
- Parses all headers in the Markdown file
- Generates hierarchical numbering (1.0, 1.1, 2.0, etc.)
- Creates unique short codes for each header
@bermudi
bermudi / index.html
Created November 24, 2024 20:22
The Artifact's Guts
<canvas id="canvas"></canvas>
<textarea id="codeEditor" class="editor" spellcheck="false" autocorrect="off" autocapitalize="off" translate="no" oninput="render()"></textarea>
<pre id="error"></pre>
<div id="indicator"></div>
<div id="controls">
<div class="controls">
<input id="btnToggleView" class="icon" type="checkbox" name="toggleView" onclick="toggleView()">
<input id="btnToggleResolution" class="icon" type="checkbox" name="toggleResolution" onchange="toggleResolution()">
<input id="btnReset" class="icon" type="checkbox" name="reset" onclick="reset()">
</div>
@bermudi
bermudi / index.html
Created November 15, 2024 23:41
Interactive Grid Effect
<div id="container">
<div class="tile"></div>
</div>
<div id="links">
<div class="meta-link">
<span class="label">Links</span>
<span class="dot">·</span>
<a class="source" href="https://rauno.me/" target="_blank" title="Source">
<i class="fa-solid fa-link"></i>