source-command-sparc-refinement-optimization-mode

source-command-sparc-refinement-optimization-mode is a skill for Claude Code, Codex from ayushcodes10/echo-mem. It costs 38 tokens per session (649 once invoked), scanned A, original, Apache-2.0.

A code-refinement workflow for reviewing file structure, splitting oversized components, reducing dependencies, improving configuration, and optimizing performance.

In plain words
What is it for?
Use it to modularize files, move inline settings into environment files, simplify dependencies, enforce file-size limits, and improve code structure or speed.
Why use it?
It helps address code that is hard to maintain, too large, tightly coupled, poorly configured, or unnecessarily slow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to modularize files, move inline settings into environment files, simplify dependencies, enforce file-size limits, and improve code structure or speed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayushcodes10/echo-mem/source-command-sparc-refinement-optimization-mode
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ayushcodes10/echo-mem --skill source-command-sparc-refinement-optimization-mode
Clone the repo
git clone --depth 1 https://github.com/ayushcodes10/echo-mem

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for source-command-sparc-refinement-optimization-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayushcodes10/echo-mem/source-command-sparc-refinement-optimization-mode/github.svg)](https://agentmods.dev/skills/ayushcodes10/echo-mem/source-command-sparc-refinement-optimization-mode)
Your own site
<a href="https://agentmods.dev/skills/ayushcodes10/echo-mem/source-command-sparc-refinement-optimization-mode"><img src="https://agentmods.dev/badge/skills/ayushcodes10/echo-mem/source-command-sparc-refinement-optimization-mode/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for source-command-sparc-refinement-optimization-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayushcodes10/echo-mem/source-command-sparc-refinement-optimization-mode"><img src="https://agentmods.dev/badge/skills/ayushcodes10/echo-mem/source-command-sparc-refinement-optimization-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00649
Opus 5.5 $0.00015 $0.00260
Sonnet 5.5 $0.00008 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured 1mo ago against content hash 3e4bbdb07eb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

source-command-sparc-refinement-optimization-mode scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/source-command-sparc-refinement-optimization-mode/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

source-command-sparc-refinement-optimization-mode

Use this skill when the user asks to run the migrated source command sparc-refinement-optimization-mode.

Command Template

🧹 Optimizer

Role Definition

You refactor, modularize, and improve system performance. You enforce file size limits, dependency decoupling, and configuration hygiene.

Custom Instructions

Audit files for clarity, modularity, and size. Break large components (>500 lines) into smaller ones. Move inline configs to env files. Optimize performance or structure. Use new_task to delegate changes and finalize with attempt_completion.

Available Tools

  • read: File reading and viewing
  • edit: File modification and creation
  • browser: Web browsing capabilities
  • mcp: Model Context Protocol tools
  • command: Command execution

Usage

Option 1: Using MCP Tools (Preferred in Codex)

mcp__claude-flow__sparc_mode {
  mode: "refinement-optimization-mode",
  task_description: "optimize database queries",
  options: {
    namespace: "refinement-optimization-mode",
    non_interactive: false
  }
}

Option 2: Using NPX CLI (Fallback when MCP not available)

# Use when running from terminal or MCP tools unavailable
npx Codex-flow sparc run refinement-optimization-mode "optimize database queries"

# For alpha features
npx Codex-flow@alpha sparc run refinement-optimization-mode "optimize database queries"

# With namespace
npx Codex-flow sparc run refinement-optimization-mode "your task" --namespace refinement-optimization-mode

# Non-interactive mode
npx Codex-flow sparc run refinement-optimization-mode "your task" --non-interactive

Option 3: Local Installation

# If Codex-flow is installed locally
./Codex-flow sparc run refinement-optimization-mode "optimize database queries"

Memory Integration

Using MCP Tools (Preferred)

// Store mode-specific context
mcp__claude-flow__memory_usage {
  action: "store",
  key: "refinement-optimization-mode_context",
  value: "important decisions",
  namespace: "refinement-optimization-mode"
}

// Query previous work
mcp__claude-flow__memory_search {
  pattern: "refinement-optimization-mode",
  namespace: "refinement-optimization-mode",
  limit: 5
}

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 90 lines · 38 tokens per session scan A 3e4bbdb07eb9

Subscribe to this mod's changes

source-command-sparc-refinement-optimization-mode is a skill published in the GitHub repository ayushcodes10/echo-mem (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 38 tokens to every session and 649 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

honcho-cli

Inspect and debug Honcho workspaces via the honcho CLI. Use when investigating peer representations, memory state, session context, or dialectic quality — any task that requires introspection of a Honcho deployment, including verifying that a recall/record memory loop is actually working.

plastic-labs/honcho · 61 tokens

upload-debug-memory

Use after resolving a bug, test failure, build failure, CI issue, deployment issue, or framework/API pitfall when the verified lesson should be published to Noosphere for future agents.

JinNing6/Noosphere · 41 tokens

diagnose

Use when an AI Brain vault needs a health check or something feels off: Claude ignores CLAUDE.md, journal entries missing from /weekly, hooks not firing, something broke after a git pull, a friend's install misbehaves, Obsidian crashes or pegs the CPU, a .claude/worktrees folder appeared, Granola/WhatsApp/Slack/Gmail…

mycelium-hq/ai-brain-starter · 110 tokens

brain-doctor

Lint and repair the Claude Brain Logseq graph — find and fix format violations that create phantom pages or broken macros. Triggers: "brain doctor", "lint brain", "check brain health", "clean up brain", "fix brain", "graph hygiene", "why are there empty pages", "find broken pages", "backfill digests", "rebuild digest…

jame581/LogseqBrain · 114 tokens

agent-debug-memory

Use when debugging code, tests, builds, deployments, CI failures, runtime errors, framework issues, API migrations, or UI state bugs where a coding Agent should consult Noosphere shared memory before fixing and upload the verified lesson afterward.

JinNing6/Noosphere · 50 tokens

troubleshooting

Diagnoses and repairs core-memory-kit itself when the memory system is broken — the per-failure-code repair book. Fire whenever a "⚠ [core-memory-kit]" whisper appears on the prompt (it names the failure and points here), or when the user reports a kit symptom however they phrase it: memory is not being saved, nothing…

LH8PPL/core-memory-kit · 159 tokens