/cc-authoring:plan-mode-orchestrator-write-deadlockfrom cc-authoring
Recognize and escape the deadlock where NO write can succeed because plan mode and an "orchestrator mode" hook block each other. Use when: (1) a PostToolUse/ PreToolUse hook returns "ORCHESTRATOR MODE: the main thread must not edit or write files directly... delegate it to a subagent"; (2) you are ALSO in plan mode (system message says only the plan file may be edited); (3) subagents you dispatch to do the write refuse with "plan mode became active... forbids writing to any file except my designated plan file"; (4) you find you cannot even rewrite your own plan file via a subagent; (5) you catch yourself dispatching a 2nd/3rd/4th subagent for the same write and each returns a plan instead of doing it. Covers MCP writes (e.g. Notion notion-create-pages) and local file writes alike.
Ships in cc-authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two independent harness constraints can combine into a total write lock that no agent-side action can break:
Result: main thread can't write (hook), and subagents can't write either (plan mode). Subagents asked to write instead return a "here is my plan, approve to proceed" message and a separate per-subagent plan file. Even rewriting your OWN plan file via a subagent fails, because a subagent is restricted to ITS designated plan file, not yours.
ORCHESTRATOR MODE: the main thread must not edit or write files directly.you are only allowed to take READ-ONLY actions /
the only file you are allowed to edit.plan mode became active mid-task, and its rules forbid writing to any file except my designated plan file.After the user exits plan mode, the re-dispatched subagent completes the write and returns a concrete artifact (e.g. a created page URL / written file path) instead of a "plan to do it" message.
Task: publish a design doc as a Notion sub-page, while both plan mode and an orchestrator hook are active.
self (auth ok), read
the Notion enhanced-markdown-spec resource (confirmed mermaid renders).*-agent-*.md plan file and asks for approval.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cajias/claude-skills --plugin cc-authoring16 skills in this plugin
/apm-marketplace-authoring-gotchasEight APM-marketplace-authoring gotchas discovered during real
migrations from hand-authored .claude-plugin/marketplace.json to
APM-managed and from CC-native plugin authoring.
Use when: (1) running APM's packaging step (with or without
`--dry-run`) or its marketplace-check command in a repo with an
`apm.yml`; (2) wiring CI for an APM
marketplace; (3) the CI staleness check (repack, then `git diff
--quiet`) fails despite a clean local; (4) prettier reformats
`marketplace.json` after APM's packer writes it; (5) APM exit code 1 on
local-path-only marketplaces; (6) confused by `packages:` in apm.yml
vs `plugins:` in marketplace.json; (7) commitlint rejects a commit
with `footer-leading-blank` despite no apparent footer; (8) `apm
compile -t claude` exits 0 with zero output and no compiled plugin
appears; (9) husky+lint-staged pre-commit blocks the FIRST marketplace
commit with markdownlint `MD040/fenced-code-language` errors on a
SKILL.md file copied verbatim from `~/.claude/skills/`. The gotchas
form a chain — fixing one usually surfaces the next.
/apm-plugin-distribution-pathsCanonical authoring layout for an APM (microsoft/apm)
package, plus the decision matrix for whether you need a `marketplace:` block.
Use when: (1) you've run `apm init` and are unsure where SKILL.md / agent .md
/ command .md files belong (answer: under `.apm/`, NOT at repo root); (2)
you've authored CC-native files at `commands/agents/skills/` at repo root and
wonder if that's "right" (it works as fallback layout #3 "Claude plugin", but
it's not the canonical authoring path); (3) you're trying to choose between
the three layouts APM recognizes (one-skill repo, multi-primitive `.apm/`,
Claude plugin); (4) `apm targets` fails with "No such command" in CLI 0.12.1
(subcommand doesn't exist); (5) `apm validate` fails with "No such command"
in CLI 0.12.1 (use APM's packaging command in dry-run mode instead); (6) wondering whether
`apm compile -t claude` will generate output for a hand-authored CC-native
plugin (it won't; it's a no-op for layout #3); (7) wondering if you need a
`marketplace:` block in apm.yml (you don't, for a single-plugin repo).
Covers the canonical `.apm/` source layout, the source-to-plugin remap
table, the three-layout choice, and the four distribution paths.