Agent Skills: Placeholder Syntax Standards

Placeholder syntax standards for documentation and prompts. Use when writing prompts, documentation, pattern descriptions, or any content with user-substitutable values.

UncategorizedID: tianjianjiang/smith/smith-placeholder

Install this agent skill to your local

pnpm dlx add-skill https://github.com/tianjianjiang/smith/tree/HEAD/smith-placeholder

Skill Files

Browse the full folder contents for smith-placeholder.

Download Skill

Loading file tree…

smith-placeholder/SKILL.md

Skill Metadata

Name
smith-placeholder
Description
Placeholder syntax standards for documentation and prompts. Use when writing prompts, documentation, pattern descriptions, or any content with user-substitutable values.

Placeholder Syntax Standards

<metadata>
  • Scope: Placeholder syntax for documentation and prompts
  • Load if: Writing prompts, documentation, or pattern descriptions
  • Prerequisites: @smith-principles/SKILL.md, @smith-standards/SKILL.md
</metadata> <context>

Placeholders indicate where users substitute values. Syntax must avoid conflicts with Jinja2, Python f-strings, and XML tags.

Code blocks within documents follow their own language conventions.

</context>

Recommended Syntax

<required>

Inline Markdown (primary):

  • Backticks: placeholder_name, PLACEHOLDER_NAME
  • Renders as monospace, visually distinct

Inside code blocks (when backticks nest):

  • Brackets: [placeholder]
  • Or language-native: PLACEHOLDER as literal identifier
</required> <forbidden>

Avoid in documentation:

  • {{placeholder}} - Jinja2 template conflict
  • {placeholder} - Python f-string conflict
  • <placeholder> - XML tag conflict
</forbidden>

Code Block Conventions

Code blocks follow their language's conventions:

Shell (use literal UPPER_SNAKE or quotes):

git checkout -b "feat/FEATURE_NAME"
export API_KEY="YOUR_API_KEY"
# Python: use descriptive identifiers
user_input = "..."  # Replace with actual input
// JavaScript: use string literals
const apiKey = "YOUR_API_KEY";

ACTION (Recency Zone)

<required>

When writing placeholders:

  1. Use backticks for inline markdown: placeholder_name
  2. Use brackets inside code blocks: [placeholder]
  3. Avoid Jinja2 {{}}, f-string {}, and XML <> syntax
</required> <related>
  • @smith-xml/SKILL.md - XML tag standards
  • @smith-style/SKILL.md - File/branch naming patterns
</related>