closedloop-env

Provide ClosedLoop environment variables and construct file paths for agents.

102|10|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/closedloop-ai/claude-plugins --skill closedloop-env
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: closedloop-env
Source: https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/code/skills/closedloop-env
Command: npx skills add https://github.com/closedloop-ai/claude-plugins --skill closedloop-env

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides agents with essential environment variables and paths required to interact with the ClosedLoop system, ensuring consistent access to working directories, plugin configurations, and data files.

Core Features & Use Cases

  • Environment Variable Access: Retrieves CLOSEDLOOP_WORKDIR, CLAUDE_PLUGIN_ROOT, CLOSEDLOOP_PRD_FILE, and CLOSEDLOOP_MAX_ITERATIONS.
  • Path Construction: Facilitates the creation of full paths for critical files like schema and plan files.
  • Learnings Integration: Enables agents to read agent-specific learning files for performance improvement.
  • Use Case: An agent needs to save a generated plan. It uses this skill to find the correct CLOSEDLOOP_WORKDIR and construct the path to plan.json within it.

Quick Start

Use the closedloop-env skill to get the CLOSEDLOOP_WORKDIR.

Frequently Asked Questions about closedloop-env

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access ClosedLoop environment variables for agent file paths?

Access ClosedLoop environment variables by sourcing the required configuration file to populate paths like CLOSEDLOOP_WORKDIR, ensuring agents can deterministically locate run directories and plugin schemas.

What environment variables are needed to construct paths in the ClosedLoop workdir?

The essential ClosedLoop environment variables include CLOSEDLOOP_WORKDIR, CLAUDE_PLUGIN_ROOT, CLOSEDLOOP_PRD_FILE, and CLOSEDLOOP_MAX_ITERATIONS, which provide the base paths for agent operations.

Do I need to source a configuration file before retrieving ClosedLoop run directories?

Yes, you must source a configuration file before retrieving ClosedLoop run directories, as it populates the essential environment variables required for deterministic path construction and system access.

How do agents read organizational learnings to improve performance in ClosedLoop?

Agents read organizational learnings by using the closedloop-env skill to locate and access agent-specific learning files stored within the configured environment paths for performance improvement.

Can I use this skill to find the correct path for saving a generated plan file?

Yes, you can use this skill to find the correct CLOSEDLOOP_WORKDIR and construct the full file path needed to save generated outputs like a plan.json file within the run directory.

What are the limitations of using environment variables for ClosedLoop path construction?

The primary limitation is that path construction fails if the configuration file is not sourced first, as environment variables like CLOSEDLOOP_WORKDIR remain unset and prevent deterministic file access.