From 56b0d77df0b3d9a68b2b8f4fa079198cbf2d1260 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 25 Aug 2026 23:19:07 +0000 Subject: [PATCH 1/4] Label install steps as Claude Code session vs terminal Slash commands run inside a session. claude plugin commands run from the terminal. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 871bf9e..0733acc 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,17 @@ every project. ## Install -Add the marketplace, then install the plugin: +Add the marketplace, then install the plugin. + +From a Claude Code session: ``` /plugin marketplace add docwriter-org/style /plugin install docwriter-style-generator@docwriter-style ``` +From the terminal: + ```bash claude plugin marketplace add docwriter-org/style claude plugin install docwriter-style-generator@docwriter-style From bac231d9cdb7034a06c02dda9aee69c238ec49d9 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 25 Aug 2026 23:21:20 +0000 Subject: [PATCH 2/4] Add Codex plugin install alongside Claude Code Ship .codex-plugin/plugin.json and an .agents marketplace catalog so Codex can add docwriter-org/style. Document session vs terminal install for both hosts, and write the generated skill to the Claude and Codex skill homes. --- .agents/plugins/marketplace.json | 20 ++++++++++++++++ .claude-plugin/marketplace.json | 10 +++++++- .codex-plugin/plugin.json | 21 +++++++++++++++++ README.md | 27 ++++++++++++++++++---- skills/docwriter-style-generator/SKILL.md | 28 +++++++++++++++-------- tests/lexical-analysis.mjs | 13 +++++++++++ 6 files changed, 105 insertions(+), 14 deletions(-) create mode 100644 .agents/plugins/marketplace.json create mode 100644 .codex-plugin/plugin.json diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json new file mode 100644 index 0000000..0e6e431 --- /dev/null +++ b/.agents/plugins/marketplace.json @@ -0,0 +1,20 @@ +{ + "name": "docwriter-style", + "interface": { + "displayName": "DocWriter style" + }, + "plugins": [ + { + "name": "docwriter-style-generator", + "source": { + "source": "local", + "path": "./" + }, + "policy": { + "installation": "AVAILABLE", + "authentication": "ON_USE" + }, + "category": "Productivity" + } + ] +} diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 88aff1b..15b4601 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -3,11 +3,19 @@ "owner": { "name": "DocWriter" }, + "interface": { + "displayName": "DocWriter style" + }, "plugins": [ { "name": "docwriter-style-generator", "source": "./", - "description": "Learn a writing style from samples and produce a portable my-writing-style skill" + "description": "Learn a writing style from samples and produce a portable my-writing-style skill", + "policy": { + "installation": "AVAILABLE", + "authentication": "ON_USE" + }, + "category": "Productivity" } ] } diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json new file mode 100644 index 0000000..477c4c4 --- /dev/null +++ b/.codex-plugin/plugin.json @@ -0,0 +1,21 @@ +{ + "name": "docwriter-style-generator", + "version": "1.0.0", + "description": "Learn a writing style from samples and produce a portable my-writing-style skill", + "author": { + "name": "DocWriter", + "url": "https://github.com/docwriter-org/style" + }, + "homepage": "https://github.com/docwriter-org/style", + "repository": "https://github.com/docwriter-org/style", + "keywords": ["writing", "style", "skill"], + "skills": "./skills/", + "interface": { + "displayName": "DocWriter style generator", + "shortDescription": "Learn a writing style from your own prose", + "longDescription": "Measure word-level habits, run a multi-agent pass over words, sentences, and passages, and write a portable my-writing-style skill.", + "developerName": "DocWriter", + "category": "Productivity", + "websiteURL": "https://github.com/docwriter-org/style" + } +} diff --git a/README.md b/README.md index 0733acc..3abc761 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,15 @@ Build a `my-writing-style` skill from your own prose. Give it a few pieces of your writing — local files, URLs, or pasted text — and it measures word-level habits, runs a multi-agent pass over words, sentences, -and passages, checks each habit with you, and writes a skill to -`~/.claude/skills/my-writing-style/` that Claude Code loads automatically in -every project. +and passages, checks each habit with you, and writes a skill that Claude Code +and Codex load automatically. ## Install Add the marketplace, then install the plugin. +### Claude Code + From a Claude Code session: ``` @@ -26,6 +27,23 @@ claude plugin marketplace add docwriter-org/style claude plugin install docwriter-style-generator@docwriter-style ``` +### Codex + +From a Codex session: + +``` +/plugins +``` + +Add marketplace `docwriter-org/style`, then install `docwriter-style-generator`. + +From the terminal: + +```bash +codex plugin marketplace add docwriter-org/style +codex plugin add docwriter-style-generator@docwriter-style +``` + ## Use @@ -38,7 +56,8 @@ automatically. Run it again to add a source or update the habits. ## What it produces -A separate skill at `~/.claude/skills/my-writing-style/`: +A separate skill at `~/.claude/skills/my-writing-style/` (Claude Code) and +`~/.agents/skills/my-writing-style/` (Codex): ``` my-writing-style/ diff --git a/skills/docwriter-style-generator/SKILL.md b/skills/docwriter-style-generator/SKILL.md index 459419f..45b1bbe 100644 --- a/skills/docwriter-style-generator/SKILL.md +++ b/skills/docwriter-style-generator/SKILL.md @@ -13,11 +13,17 @@ description: >- This skill is a generator. It reads your writing, measures word-level habits with the bundled analyzer, runs a multi-agent pass, checks each habit with -you, and writes a separate `my-writing-style` skill to -`~/.claude/skills/my-writing-style/` that Claude Code picks up automatically in -every project. +you, and writes a separate `my-writing-style` skill that Claude Code and +Codex pick up automatically. -If `~/.claude/skills/my-writing-style/SKILL.md` already exists, ask: +Write the same files to both homes: + +``` +~/.claude/skills/my-writing-style/ ← Claude Code +~/.agents/skills/my-writing-style/ ← Codex +``` + +If either home already has `SKILL.md`, ask: ``` AskUserQuestion: @@ -77,6 +83,7 @@ directories if they do not exist: ``` ~/.claude/skills/my-writing-style/sources/