authoring prompt
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
---
|
||||
name: authoring
|
||||
description: Provide a practical checklist and baseline template for authoring docs-first MCP modules and repository-specific Copilot instruction shims.
|
||||
x-personal-mcp:
|
||||
id: authoring
|
||||
version: 1.0.0
|
||||
tags:
|
||||
- authoring
|
||||
- mcp
|
||||
- fastmcp
|
||||
- copilot
|
||||
- prompts
|
||||
- scaffolding
|
||||
capabilities:
|
||||
- resource://prompts/authoring/document
|
||||
arguments:
|
||||
artifact_type:
|
||||
title: Artifact type
|
||||
description: "Enum (case-sensitive): skill | prompt | shim."
|
||||
required: true
|
||||
artifact_id:
|
||||
title: Artifact id
|
||||
description: Lowercase kebab-case id for the module or shim.
|
||||
required: true
|
||||
goal:
|
||||
title: Goal
|
||||
description: One-sentence capability statement describing what to create and when to use it.
|
||||
required: true
|
||||
scope_glob:
|
||||
title: Scope glob
|
||||
description: Optional applyTo glob for shim outputs.
|
||||
required: false
|
||||
---
|
||||
|
||||
# Authoring Bootstrap
|
||||
|
||||
Use this prompt to author or update docs-first MCP modules in this repository, including repository-specific Copilot thin shims.
|
||||
|
||||
## Inputs
|
||||
|
||||
1. artifact_type: one of skill, prompt, shim
|
||||
2. artifact_id: lowercase kebab-case id
|
||||
3. goal: one-sentence capability statement
|
||||
4. optional scope_glob for shim outputs
|
||||
|
||||
## Required References
|
||||
|
||||
Load only what matches the requested artifact:
|
||||
|
||||
1. Authoring workflow and validation policy: [Authoring Guide](../../authoring.md)
|
||||
2. Prompt metadata and structure: [Prompt Contract](../../contracts/prompt.md)
|
||||
3. Skill metadata and structure (only for skill outputs): [Skill Contract](../../contracts/skill_contract.md)
|
||||
4. Thin shim mechanics and path binding: [Skill Usage Mechanics](../../usage.md)
|
||||
5. Copilot resource attachment and fallback behavior: [Copilot MCP Mechanics](../../copilot.md)
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Validate required inputs and ask one clarifying question if any required input is missing.
|
||||
2. Keep ids and slugs aligned with folder names and frontmatter ids.
|
||||
3. Enforce artifact_type enum values exactly: skill, prompt, shim.
|
||||
4. If artifact_type is outside the enum, ask one correction question and stop before generating output.
|
||||
5. Apply YAML safety rules for frontmatter values:
|
||||
- quote values containing `:`
|
||||
- prefer quotes for punctuation-heavy scalars
|
||||
- use block scalars for multiline descriptions
|
||||
6. Run immediate validation after frontmatter edits:
|
||||
- `uv run zensical build`
|
||||
- `uv run pytest -q`
|
||||
7. Produce only the requested artifact type.
|
||||
8. Keep guidance deterministic and minimal, with explicit references to source docs.
|
||||
9. If artifact_type is shim:
|
||||
- bind one applyTo scope to one primary skill resource URI
|
||||
- prefer MCP resource attachment first
|
||||
- if resource attachment is unavailable, use fallback tool order:
|
||||
1. list_resources
|
||||
2. read_resource
|
||||
3. search_patterns
|
||||
4. get_pattern_by_id
|
||||
5. get_skill_document_by_id
|
||||
10. Return created or updated file paths and any validation commands that should be run.
|
||||
|
||||
## Output Contract
|
||||
|
||||
Return:
|
||||
|
||||
1. Files created or updated.
|
||||
2. Which references were used.
|
||||
3. Validation commands and outcomes (or commands to run if execution is not requested).
|
||||
Reference in New Issue
Block a user