OpenParable
Skip to content
← Back to skills

Source Maps

Testing & Quality

Source Maps is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Expert skill for generating and consuming source maps for debugging compiled code

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/programming-languages/skills/source-maps/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/source-maps-08cd5f94, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Source Maps Skill

Overview

Expert skill for generating and consuming source maps for debugging compiled code.

Capabilities

  • Generate source maps in various formats (V3 JSON, DWARF)
  • Map generated positions to original source
  • Handle inlined functions in source maps
  • Implement source map composition/chaining
  • Generate VLQ-encoded mappings
  • Support names array for identifiers
  • Handle multi-file source map indices
  • Integrate with debuggers and stack traces

Target Processes

  • source-map-generation.js
  • code-generation-llvm.js
  • debugger-adapter-development.js
  • jit-compiler-development.js

Dependencies

Source map V3 specification

Usage Guidelines

  1. Accuracy: Ensure precise mapping between generated and original positions
  2. Inlining: Handle inlined code with multiple source locations
  3. Composition: Support chaining for multi-stage compilation
  4. Efficiency: Use VLQ encoding for compact representations
  5. Integration: Test with actual debuggers to verify correctness

Output Schema

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "enum": ["v3-json", "dwarf", "pdb"]
    },
    "features": {
      "type": "array",
      "items": { "type": "string" }
    },
    "inlineSupport": { "type": "boolean" },
    "generatedFiles": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}