Skip to content

feat(cli): patchy delete #41

Closed

Description

@allisonmahmood

Problem

Onboarding teaches users to say "take that page down" and the skill promises the key lets them "edit or delete", but the CLI registers only auth set / whoami / status / validate / upload. The server already permits owner deletes (DELETE /api/drafts/:id behind the user's own token) and drafts.json maps a local file to its draft id, so this is CLI-only.

"yeah, I guess we should add patchy delete." — omarchy PR 6

Do

  • patchy delete <file> | --draft <id>, resolving the id from the drafts cache or the flag, dropping the cache entry on 2xx.
  • Command description says "Irreversible. Confirm with the user first."
  • One vitest: delete, then the draft 404s.
  • --json output per --json on every command with shared Effect Schema wire types (shared wire type; if that lands later, keep the shape aligned).
  • One line in the skill mapping "take that page down" to the command.

Done when

An agent following the skill can take a page down with the same key it published with.


Filed from the foundation map task File the DX backlog from the decisions doc. Allison's reasoning is quoted from her agent-DX decision log (t3code and omarchy surveys, reviewed 2026-08-26).

Activity

  1. added
    ready-for-agent
    area:cli
    on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions