From agentic-guardrails
CRUA workflow for editing Office and proprietary documents (docx, xlsx, pptx, pdf) safely. Use when asked to modify, update, fill in, or rewrite a document file — checkout converts it to markdown/csv in _workspace/, you edit the copy, publish archives the old version and replaces the original. Never edit proprietary formats in place.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentic-guardrails:agent-workspaceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The guardrails plugin enforces **CRUA**: Create, Read, Update, **Archive** —
The guardrails plugin enforces CRUA: Create, Read, Update, Archive — never delete, never overwrite without a recoverable prior version.
Checkout — agw checkout <file>
Converts the document to an open format (docx → markdown, xlsx → one csv per
sheet) inside _workspace/ next to the original, and records the original's
hash so conflicts are detected later. If the file can't be converted, it is
copied as-is ("plain copy mode") — still edit only the workspace copy.
Edit the working copy — use normal Write/Edit tools on the file under
_workspace/. Never edit the original directly; the hook will ask or deny.
Diff (optional) — agw diff <file> shows working copy vs. original.
Publish — agw publish <file>
--force without their say-so.| Verb | What it does |
|---|---|
agw status | List open checkouts and their state |
agw scan <folder> | Inventory a folder: placeholders, gdoc stubs, sync artifacts |
agw archive <path> | Reversible "delete" — moves into the archive store |
agw restore <path> [--version N] | Bring back any archived version |
agw undo | Revert the last archive/move operation |
agw move <src> <dest> | Logged, undoable move/rename |
agw snapshot <folder> | Whole-folder backup before bulk work |
agw log [path] | Show the operation log |
agw doctor | Environment self-check (converters, store writability) |
agw office <op> <file> | Targeted in-place Office edits (see below) |
All verbs accept --json for machine-readable output.
agw officeFor a targeted change to a docx/xlsx/pptx file, skip the checkout round-trip — these edit in place and archive a pre-image snapshot first, so they are as reversible as everything else:
agw office info <file> # structure: sheets, headings, slides
agw office get-text <file> # plain-text extract (docx/pptx)
agw office replace-text <file> --find "Old Name" --replace "New Name"
agw office replace-text <file> --find "Q3" --dry-run # list matches first
agw office replace-text <file> --find "Q3" --replace "Q4" --all # every one
agw office replace-text <file> --find "Q3" --replace "Q4" --nth 2 # just one
agw office set-cell <file.xlsx> --sheet Q3 --cell B2 --value 55
agw office append-rows <file.xlsx> --sheet Q3 --from-csv new-rows.csv
replace-text works like the Edit tool: if --find matches more than once
it refuses rather than mass-editing. Either make --find longer and unique,
or run --dry-run to see every match (numbered, with location and context)
and then target with --nth N or replace everywhere with --all.
Values auto-coerce to numbers/booleans/formulas (=SUM(...)); add --text
to keep them as literal text. Use agw office for point edits; use
checkout/publish when restructuring a document or doing heavy rewriting.
Never edit Office files with ad-hoc interpreter one-liners (python -c with
openpyxl etc.) — those bypass the snapshot contract and will be blocked
or escalated.
rm, rmdir, shred, find -delete and equivalents are blocked.
When you need to remove something: agw archive <path>.~/.agw or $AGW_HOME) directly.agw prune is human-only; never run it on a user's behalf.npx claudepluginhub profsynapse/agentic-guardrails-plugin --plugin agentic-guardrailsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.