| allowed-tools | description | |||||
|---|---|---|---|---|---|---|
|
Create detailed map of code area dependencies and structure |
Generate a comprehensive map of the specified code area.
| import re | |
| from pathlib import Path | |
| class HtmlCombiner: | |
| def __init__(self, export_dir: Path): | |
| self.export_dir = export_dir | |
| self.template = self._get_html_template() | |
| def create_index(self): | |
| sidebar_content = self._read_file_content("_sidebar.html") |
This document contains universal development principles and practices for AI assistants working on any project. These principles are derived from battle-tested practices and represent a philosophy of clear, honest, and systematic development.
BEFORE ANY ACTION, you MUST use these tools. Tool names use double underscores between segments.
You are an expert in prompt engineering, specializing in optimizing AI code assistant instructions. Your task is to analyze and improve the instructions for Claude Code. Follow these steps carefully:
Then, examine the current Claude instructions, commands and config <claude_instructions> /CLAUDE.md /.claude/commands/*
| import anthropic | |
| import os | |
| import sys | |
| from termcolor import colored | |
| from dotenv import load_dotenv | |
| class ClaudeAgent: | |
| def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000): | |
| """Initialize the Claude agent with API key and model.""" |
| <# | |
| .SYNOPSIS | |
| Converts Mermaid diagram code to SVG with a text-based UI | |
| .DESCRIPTION | |
| This PowerShell script provides a menu-driven interface to convert Mermaid diagram code to SVG files | |
| using either the Mermaid CLI (if installed) or the Mermaid Live Editor API. | |
| .PARAMETER OutputPath | |
| Path to save the SVG file (default: current directory) | |
| .EXAMPLE | |
| .\mermaid_to_svg.ps1 |
| const puppeteer = require('puppeteer'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| async function convertSVGtoPDF(inputPath, outputPath) { | |
| // Validate input file exists and is SVG | |
| if (!fs.existsSync(inputPath)) { | |
| throw new Error('Input file does not exist'); | |
| } | |
| if (path.extname(inputPath).toLowerCase() !== '.svg') { |
| from tracing import Tracker | |
| @Tracker | |
| def recur_fibo(n): | |
| # Simple recursive fibbonacci program found on stackoverflow for testing | |
| if n <= 1: | |
| return n | |
| else: | |
| return recur_fibo(n-1) + recur_fibo(n-2) |
| #!/bin/bash | |
| # Usage: tracing::init [endpoint; default localhost:4317] | |
| function tracing::init() { | |
| export OTEL_EXPORTER_OTLP_ENDPOINT="${1:-${OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}}" | |
| } | |
| # Usage: tracing::auto::init [endpoint; default localhost:4317] | |
| function tracing::auto::init() { | |
| tracing::init |