@m-d-t/skills

extension

Agent skills for mdt — keep markdown templates synchronized across your project. Includes MCP tool guidance, template syntax, and CLI workflow instructions.

by · v0.9.0 · published 1mo ago

$ pi install npm:@m-d-t/skills
downloads/mo
186
stars
last push
open issues

Signals

license: Unlicensetestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

408 downloads · last 12 weeks (weekly)

README

@m-d-t/skills

Agent skills for mdt — the markdown template synchronization tool.

What's inside

This package provides a pi-compatible agent skill that teaches your coding agent how to work with mdt. When installed, agents can:

  • Create and manage provider/consumer template blocks
  • Run mdt check, mdt update, and other CLI commands correctly
  • Use MCP tools (mdt_find_reuse, mdt_preview, mdt_check, etc.) with best practices
  • Apply the right transformers for source-file doc comments (Rust, TypeScript, Python, Go, etc.)
  • Configure mdt.toml for data interpolation, padding, and scanning rules

Installation

As a pi package

pi install npm:@m-d-t/skills

Or try it for a single session:

pi -e npm:@m-d-t/skills

As a project-level dependency

Add to your .pi/settings.json:

{
	"packages": ["npm:@m-d-t/skills"]
}

Then any contributor running pi in the project will automatically get the skill.

Requirements

  • mdt CLI installed (npm install -g @m-d-t/cli or cargo install mdt_cli)
  • For MCP integration: an mdt MCP server configured in your agent (mdt mcp)

What the skill covers

TopicDescription
Template syntaxProvider ({@}), consumer ({=}), inline ({~}), close ({/}) tags
Transformerstrim, indent, linePrefix, codeBlock, replace, if, and more
Data interpolationPull values from JSON, TOML, YAML, KDL, INI, or script output
Source file supportConsumer blocks in .rs, .ts, .py, .go, .java, etc.
MCP toolsFull reference for all 7 MCP server tools with best practices
Configurationmdt.toml sections: [data], [padding], [exclude], [templates]
CLI commandsinit, check, update, list, info, doctor, assist, lsp, mcp

Links