AgentSkillsCN

add-payee

依据微软云采用框架(CAF)与 Azure 良构架构框架(WAF),对 Terraform Azure 代码进行审查与评估。当您需要审查 Terraform 配置、对照微软框架验证代码、检查基础设施即代码的合规性,或在部署前对 .tf 文件进行架构评审时,可运用此技能。

SKILL.md
--- frontmatter
name: add-payee
summary: Add a new payee (merchant, person, organization, or UUID) to the correct preludes journal file, maintaining strict lexicographical order.

Skill: Add Payee

🚩 Agent Workflow Reminder

Use the Todo List Tool for multi-step tasks (plan, mark a step in-progress, complete it, and update). See AGENTS.md for the concise agent workflow rules.

Payee directives must always be added to a preludes/ journal file, never to monthly or yearly journals. If you encounter a strict payee error (e.g., 'payee ... has not been declared'), resolve it by adding the payee to the appropriate preludes/ file as described below.

This skill describes how to add a new payee to the ledger system.

When to Use

  • When a new merchant, person, organization, or UUID payee is encountered in a transaction or needs to be registered for future use.

Steps

  1. Determine the correct preludes file

    • All payee directives must be placed in a preludes/ journal file, never in a monthly or yearly journal.
    • Most payees go in preludes/self.journal.
    • If the payee is specific to an alternative or other scenario, use the appropriate preludes/*.journal file.
  2. Locate the payee section

    • Find the block of lines starting with payee in the chosen preludes file.
  3. Insert the new payee

    • Add a line: payee <payee-name-or-UUID>
    • Place the new payee in strict lexicographical (ASCII/Unicode) order within the payee section.
    • When adding, check the entire payee section for correct placement and move any out-of-order entries if found.
  4. Validation

    • Run the formatting and validation scripts to ensure the file remains valid and well-ordered.

    Scripts & working directory: See .github/instructions/developer-workflows.instructions.md for canonical guidance — prefer pnpm run <script>; if running Python directly, set cwd=scripts/.

    code
      Example:
    
         ```powershell
         python -m format   # set cwd to scripts/
         python -m check    # set cwd to scripts/
         ```
    

Anti-Patterns

  • Never add payees to monthly or yearly journals. Always use a preludes/ file.
  • Inserting payees out of order, or failing to correct existing order mistakes

Related Documentation