Skip to content

Commit cae78fc

Browse files
committed
feat(code,platform): update plan-with-codex syntax and add prompt refactoring guide
Update plan-with-codex argument-hint to positional syntax. Add "Refactoring Existing Prompts" section to context-engineering skill. Fix stale skill count in platform README. Update changelogs.
1 parent 963dd00 commit cae78fc

6 files changed

Lines changed: 25 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
## [Unreleased]
88

9+
### code v1.2.2
10+
11+
#### Changed
12+
- Updated `plan-with-codex` command argument-hint to use positional syntax instead of optional bracket notation
13+
14+
### platform v1.0.2
15+
16+
#### Added
17+
- New "Refactoring Existing Prompts" section in `context-engineering` skill covering pitfalls for stale cross-references, over-abstraction, lost preconditions, and silent behavior changes
18+
919
### code v1.2.1
1020

1121
#### Changed

plugins/code/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code",
33
"description": "Code and planning framework plugin",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"author": {
66
"name": "ClosedLoop",
77
"email": "support@closedloop.ai"

plugins/code/commands/plan-with-codex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: "Iterative plan refinement debate between Claude and Codex"
3-
argument-hint: [--max-rounds N] [--plan-file PATH] [--codex-model MODEL] <prompt>
3+
argument-hint: --max-rounds N --plan-file PATH --codex-model MODEL <prompt>
44
allowed-tools: Bash, Read, Write, Glob, Grep, TodoWrite, Task, AskUserQuestion
55
skills: code:codex-review
66
effort: max

plugins/platform/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "platform",
33
"description": "ClosedLoop Platform plugin",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"author": {
66
"name": "ClosedLoop",
77
"email": "support@closedloop.ai"

plugins/platform/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Covers skill anatomy (SKILL.md frontmatter, scripts/, references/, assets/), the
201201

202202
### Installing the Plugin
203203

204-
Add the plugin to your Claude Code installation following the standard plugin installation process. Once installed, all three skills activate automatically when the conversation context matches their trigger conditions — no slash command or explicit invocation is required.
204+
Add the plugin to your Claude Code installation following the standard plugin installation process. Once installed, all five skills activate automatically when the conversation context matches their trigger conditions — no slash command or explicit invocation is required.
205205

206206
### Using claude-code-expert
207207

plugins/platform/skills/context-engineering/skill.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,17 @@ See [references/extended-thinking.md](references/extended-thinking.md) for detai
309309
| Misses context | Add role prompting |
310310
| Drops steps | Chain into separate prompts |
311311

312+
### Refactoring Existing Prompts
313+
314+
When optimizing or compressing an existing prompt, apply these checks after every structural change:
315+
316+
| Pitfall | Check |
317+
|---------|-------|
318+
| Stale cross-references | After renaming or renumbering steps, search for ALL references to old labels (jump targets, "see Step X", resume points) and update them |
319+
| Over-abstraction | If the model needs exact values to execute (specific keys, field names, command arguments), keep them literal even if they look repetitive -- a generic placeholder the model cannot expand is worse than duplication |
320+
| Lost preconditions | When merging or removing steps, verify that any precondition checks or guards in the removed step are preserved elsewhere |
321+
| Silent behavior changes | Diff the before/after and confirm every deleted line is either redundant or relocated, not dropped |
322+
312323
### Common Tag Names
313324

314325
| Tag | Purpose |

0 commit comments

Comments
 (0)