/code:closedloop-envfrom code
Exports ClosedLoop environment variables (CLOSEDLOOP_WORKDIR, CLAUDE_PLUGIN_ROOT) and builds paths to schemas and plan files. Useful for agents that depend on ClosedLoop paths.
Ships in code. 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.
Read when SKILL.md points to them; scripts run unread.
This skill provides access to ClosedLoop environment variables needed for file operations.
Read the base environment file:
.closedloop-ai/env
The file contains KEY=VALUE pairs:
CLOSEDLOOP_WORKDIR - The run directory for this sessionCLAUDE_PLUGIN_ROOT - The plugin installation directoryCLOSEDLOOP_PRD_FILE - Path to the PRD fileCLOSEDLOOP_MAX_ITERATIONS - Maximum loop iterationsAfter reading the env file, construct paths like:
{CLAUDE_PLUGIN_ROOT}/schemas/plan-schema.json{CLOSEDLOOP_WORKDIR}/plan.jsonAlso read your agent-specific learnings file if it exists:
.closedloop-ai/learnings-{your-agent-name}
Where {your-agent-name} is your name: from your frontmatter in lowercase (e.g., plan-validator).
The learnings file contains an <organization-learnings> block with patterns from previous runs. These learnings capture what worked well and should be applied to improve your performance.
When learnings are present:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub closedloop-ai/claude-plugins --plugin code13 skills in this plugin
/build-status-cacheSkip Phase 7 rebuild when no code changed since Phase 5 build passed.
Compares git diff hash against stored hash from last successful build validation.
Triggers on: entering Phase 7, checking build status, before final build validation.
Returns BUILD_CACHE_HIT to skip or BUILD_CACHE_MISS to re-run build-validator.
/codex-reviewRun Codex to review a plan file and return structured feedback with a verdict.
Triggers on: debate loop Codex review rounds.
Returns VERDICT:APPROVED or VERDICT:NEEDS_CHANGES plus CODEX_SESSION token.
/critic-cacheCheck if critic reviews are still valid before re-running Phase 2.5 critics.
Compares plan.json + critic-gates.json content hash against stored hash from last critic run.
Triggers on: entering Phase 2.5, checking critic cache, before launching critics.
Returns CRITIC_CACHE_HIT to skip critics or CRITIC_CACHE_MISS to re-run them.
Other plugins' skills for the same job