goal-os-optimize

Audit and optimize agentic OS workspaces across five maintenance modes.

4|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill goal-os-optimize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: goal-os-optimize
Source: https://github.com/m2ai-portfolio/m2ai-skills-pack/tree/main/skills/goal-os-optimize
Command: npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill goal-os-optimize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the maintenance and optimization of an agentic OS workspace by coordinating skill inventories, CLAUDE.md files, rules, and project catalogs, reducing manual cleanup time and improving governance.

Core Features & Use Cases

  • Orchestrates a five-mode optimization loop (clean, sharpen, revive, forge, maintain) via a /goal command.
  • Audits and prunes duplicate skills, aligns CLAUDE.md rules, and catalogs projects with guardrails.
  • Uses a judge agent on a separate LLM to validate iterations and ensure compliance with stated goals.

Quick Start

Invoke /goal with a concise objective to start the self-directed optimization loop for your agent OS.

Frequently Asked Questions about goal-os-optimize

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

FAQPage Schema
How do I automate maintenance and cleanup of my agent OS workspace?

Automate agent OS maintenance by invoking the /goal command to trigger a self-directed optimization loop that audits skills, CLAUDE.md files, rules, and project catalogs. It coordinates a primary agent and a separate judge LLM to validate iterations and ensure governance compliance.

What does the agent OS optimization loop do to manage skills and project catalogs?

The optimization loop manages skills and project catalogs by running five modes: clean, sharpen, revive, forge, and maintain. It audits and prunes duplicate skills, aligns CLAUDE.md rules, and catalogs projects with guardrails to reduce manual cleanup time.

How do I start optimizing CLAUDE.md rules and skill inventories with a judge agent?

Start optimizing CLAUDE.md rules and skill inventories by invoking the /goal command with a concise objective. This initiates the optimization loop, requiring a primary agent to execute changes and a judge agent running on a separate LLM to validate them within a finite iteration budget.

Can I use a separate LLM to validate iterations during agentic OS optimization?

Yes, you can use a separate LLM to validate iterations during agentic OS optimization. The workflow requires a judge agent running on a distinct LLM to evaluate the primary agent's changes, ensuring compliance with stated goals and maintaining governance across the workspace.

What are the limitations of using an automated loop for agent OS maintenance?

Limitations of this automated loop include its dependency on a finite iteration budget and the requirement for a separate LLM to run the judge agent. It is designed for ongoing maintenance workflows across skill libraries and project inventories rather than one-off fixes.

What is the best way to prune duplicate skills and align rules in an agent OS?

The best way to prune duplicate skills and align rules is to use the clean and sharpen modes within the optimization loop. These modes audit skill libraries and CLAUDE.md files, applying guardrails to catalog projects and reduce manual governance overhead.