inline-test-injection

Injects Doc Detective test steps as inline comments into documentation source files.

13|3|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/doc-detective/agent-tools --skill inline-test-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inline-test-injection
Source: https://github.com/doc-detective/agent-tools/tree/main/plugins/doc-detective/skills/inline-test-injection
Command: npx skills add https://github.com/doc-detective/agent-tools --skill inline-test-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node, npm, claude, python3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Inject Doc Detective test steps directly into documentation source files as inline comments to keep specs close to relevant content and reduce context switching.

Core Features & Use Cases

  • Semantically map test steps to documentation content and insert inline comments in Markdown, MDX, HTML, AsciiDoc, and XML/DITA.
  • Preview changes before applying them to preserve editorial control, or apply changes to update docs in place.
  • Supports custom configuration to extend patterns and handle non-standard syntax in different docs.

Quick Start

  • Provide a JSON or YAML test spec and a source file, then run the inject utility to generate inline comments.
  • Run with --apply to modify the source file; run without --apply to preview changes.

Frequently Asked Questions about inline-test-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I embed test specs as inline comments in Markdown documentation?

To embed test specs as inline comments in Markdown, you provide a JSON or YAML Doc Detective test specification and run the inject utility to semantically map steps into the source file. You can preview changes or apply them directly to update docs in place.

Can I inject Doc Detective test steps into MDX, HTML, AsciiDoc, or XML files?

Yes, you can inject Doc Detective test steps into MDX, HTML, AsciiDoc, and XML/DITA files. The skill parses specifications and targets these formats to insert inline comments near related content, keeping test validation close to the documentation source.

Do I need Node.js to run inline test injection for documentation?

Yes, you need Node.js and the Doc Detective tooling installed in your runtime environment to resolve test specs, match steps, and render inline comments. Python3 and npm are also required dependencies for executing the injection process.

What is the best way to preview inline comment changes before modifying documentation sources?

The best way to preview inline comment changes is to run the inject utility without the --apply flag. This generates a preview of the semantic test step mappings in your Markdown or MDX files, preserving editorial control before you commit any modifications.

How do I handle non-standard syntax when injecting test specs into documentation?

You handle non-standard syntax during test spec injection by using custom configuration options to extend matching patterns. This allows the tool to accurately resolve and map Doc Detective steps into files with unique or non-standard documentation formats.

Why use inline test comments instead of keeping test specs in separate files?

Inline test comments reduce context switching by keeping Doc Detective specifications close to the related documentation content. By embedding test steps directly in Markdown or MDX sources, you ensure faster validation and keep specs synchronized with the text they verify.