Files
OpenCode Agent 2698a1d765 feat: comprehensive repository overhaul and standardization
- Implement internal maintenance suite: repo-maintainer agent and automated audit/sync scripts.
- Add "Opencode Configurator" suite: agent-architect, command-creator, and skill-creator.
- Refactor core commands (/improve, /refactor, /rmslop) to RFC 2119 + XML standards.
- Standardize all agent metadata and structural tagging across the repository.
- Introduce utility commands: /npm for package management and /create-pack for bundling.
- Overhaul README.md and documentation to reflect new workflow patterns.
2026-01-12 18:16:06 +00:00

3.0 KiB

description
description
Refactor files to RFC/XML structure

Refactor the specified file or folder into RFC 2119 + XML compliant format.

<target_path>$1</target_path>

<style_guide> @RFC-XML-STYLE-GUIDE.md </style_guide>

1. Determine if `` is a file or a directory.
  1. Identify targets:

    • If it is a file: That file is the ONLY target.
    • If it is a directory: List all .md files in the folder (non-recursive unless folder is small).
  2. For each target, analyze and refactor:

    • Read the file content
    • Identify sections that map to XML tags (instructions, workflows, examples, etc.)
    • Identify requirement-level language that should use RFC keywords
    • Note the file type (agent, skill, command, or general documentation)
    • Apply the transformation rules below
    • Write the refactored file back to the same path
  3. Report summary of changes made to each file.

<transformation_rules>

Apply XML Tags

  • Wrap logical sections in appropriate tags from the style guide
  • Use consistent tag naming throughout
  • Nest tags for hierarchical content (max 3-4 levels)
  • MUST NOT break existing YAML frontmatter

Apply RFC 2119 Keywords

  • Convert "must/have to/need to" → MUST (if truly required)
  • Convert "should/ought to" → SHOULD (if strongly recommended)
  • Convert "can/may/might" → MAY (if truly optional)
  • Convert "must not/cannot" → MUST NOT (if prohibited)
  • Convert "should not" → SHOULD NOT (if discouraged)
  • Use lowercase for non-normative casual language

NO RFC Boilerplate

MUST NOT add any RFC 2119 preamble or boilerplate text. Models already know what RFC keywords mean. Adding a preamble wastes tokens and clutters the file.

Preserve

  • YAML frontmatter exactly as-is
  • Code blocks and their content
  • Existing links and references
  • The file's original intent and meaning

</transformation_rules>

<critical_non_goal>

RFC/XML is for STRUCTURE, not COMMUNICATION

The RFC 2119 keywords and XML tags are for structuring agent prompts, skill definitions, and internal documentation ONLY.

NEVER modify files such that agents would:

  • Speak to users using RFC keywords ("You MUST provide a file path")
  • Output XML tags in their responses to users
  • Adopt a formal/robotic communication style

The refactored files should make agents BEHAVE correctly, not SPEAK formally.

✓ CORRECT (internal instruction): "The agent MUST verify file exists before editing" ✗ WRONG (user-facing output): "I MUST inform you that the file does not exist"

✓ CORRECT (internal structure): "1. Check permissions 2. Edit file" ✗ WRONG (user-facing output): "File has been edited" </critical_non_goal>

<quality_checklist>

  • XML is well-formed (proper nesting, all tags closed)
  • RFC keywords used appropriately (not overused)
  • Frontmatter preserved in all files
  • Files remain readable and clear
  • Tags enhance structure, don't obscure content
  • NO RFC/XML leakage into agent communication style
  • Agents still speak naturally to users </quality_checklist>