AgentSkillsCN

add

添加

SKILL.md

Add a new commitment to track.

Aliases

  • /ft promise "title" - Add a promise
  • /ft product "title" or /ft broken-product "title" - Add a product to fix
  • /ft regulation "title" - Add a regulation/form

Arguments

  • TYPE - Required: promise, product, regulation, or custom type name
  • "TITLE" - Required: Description of the commitment
  • --to NAME - For promises: who you made the promise to
  • --due DATE - Due date in YYYY-MM-DD format
  • --priority LEVEL - low, medium (default), high, or urgent
  • --desc "TEXT" - Longer description
  • --notes "TEXT" - Additional notes

Instructions

  1. Parse Arguments: Extract type, title, and optional flags

  2. Validate Type: Check type exists in commitment_types table. If not, show available types.

  3. Insert Commitment:

    • Generate 8-character ID
    • Set created_at to now
    • Set status to 'pending'
    • Default priority to 2 (medium) if not specified
  4. Confirm: Display:

    code
    Added: {title}
    ID: {id}
    Type: {type}
    Priority: {priority_name}
    Due: {due_date or "No due date"}
    
  5. Show Updated Dashboard (abbreviated)

Examples

code
/ft promise "Send birthday card" --to "Mom" --due "2025-01-15" --priority high
/ft product "Fix leaky faucet"
/ft regulation "Renew passport" --deadline "2025-06-01"