local-add-module-skill-template

Set up Markdown file templates for distributing skill files via Intent Architect module code generation.

23|10|Updated Aug 31, 2017
One-click install
npx skills add https://github.com/IntentArchitect/Intent.Modules --skill local-add-module-skill-template-intentarchitect
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: local-add-module-skill-template
Source: https://github.com/IntentArchitect/Intent.Modules/tree/main/Modules/.opencode/skills/local-add-module-skill-template
Command: npx skills add https://github.com/IntentArchitect/Intent.Modules --skill local-add-module-skill-template-intentarchitect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Distributing skill and instruction files to consuming solutions by hand-copying them into repos is error-prone and unmaintainable. This Skill guides you through using Intent Architect's code-generation pipeline as the delivery mechanism, so files are generated, versioned, and updated safely in consumer solutions. ## Core Features & Use Cases - Template Setup: Create the Folder + File Template model elements with MarkdownFileBuilder, correct Role anchors, and Mode.Ignore protection for hand-authored content. - Safe Updates: Use contentHash-based change detection so consumer edits are never silently overwritten by module updates. - Frontmatter Authoring: Write routing-safe skill descriptions following the four-part contract (Capability, USE ONLY WHEN, DO NOT USE FOR, REQUIRES) while avoiding silent parser traps. - Use Case: You maintain a ModuleBuilder.AI module that ships a skill file to consumers' .agents/skills folders. When you need to add a new distributed file or edit an existing one, this Skill walks you through the exact model settings, constructor arguments, and release steps. ## Quick Start Ask the AI to add a new skill file to be distributed by your ModuleBuilder.AI module using the MarkdownFileBuilder template pattern.

Frequently Asked Questions about local-add-module-skill-template

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

FAQPage Schema
How do I distribute a skill file through an Intent Architect module?▼

Create a Folder containing a File Template element with Templating Method set to Markdown File Builder, set the Template Role to an AI.Context anchor, and author content in the TemplatePartial.cs raw string with Body = Mode.Ignore. The Software Factory then generates the file into the consumer's .agents folder.

How do I edit an already-shipped skill file in a module?▼

Locate the ...TemplatePartial.cs file (never the TemplateRegistration.cs) and edit the raw string in place. Never hand-edit the contentHash value, since it is recomputed automatically to detect whether consumers modified their installed copy.

Why does my YAML frontmatter list parse as empty in generated markdown?▼

The parser only understands flat single-line key: value pairs, so multi-line YAML lists silently parse to empty strings. Work around it by calling .WithFrontMatter(fm => fm.Set(...)) after .FromMarkdown(...) to inject the multi-line value.

What is the difference between Mode.Ignore and contentHash protection?▼

Mode.Ignore protects the module's own TemplatePartial.cs source from being overwritten by the Module Builder's scaffolding. The contentHash protects the consumer's installed file from being overwritten by a module update when they have hand-edited it.

When should I not use this module distribution approach?▼

Do not use it for skills authored directly in a consumer's .agents folder, for unrelated module changes like version bumps, or for modules that generate application code rather than distributing skill files.