analyzing-options
Analyzing different approaches for a task or problem with structured comparisons, effort…
Fixing lint to a clean state: runs the linter, groups reported issues into independent streams, and dispatches one parallel fixer agent per stream (ring:backend-go for Go, ring:general-purpose otherwise), iterating until clean. Use when a codebase has lint errors across multiple
$ npx -y skills add LerianStudio/ring --skill fixing-lint --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/fixing-lintContext preview
The summary Claude sees to decide when to auto-load this skill.
Fixing lint to a clean state: runs the linter, groups reported issues into independent streams, and dispatches one parallel fixer agent per stream (ring:backend-go for Go, ring:general-purpose otherwise), iterating until clean. Use when a codebase has lint errors across multiple
name: ring:fixing-lint description: "Fixing lint to a clean state: runs the linter, groups reported issues into independent streams, and dispatches one parallel fixer agent per stream (ring:backend-go for Go, ring:general-purpose otherwise), iterating until clean. Use when a codebase has lint errors across multiple files. Skip for a single error (fix directly), already-passing lint, or view-only requests; security lints are reported, not auto-fixed."
Run lint checks, group issues into independent streams, dispatch parallel agents, iterate until clean.
**Detect command:** `make lint` → `npm run lint` → `yarn lint` → `pnpm lint` → `golangci-lint run` → `cargo clippy` → `ruff check .` → `eslint .`
<lint_command> 2>&1 | tee /tmp/lint-output.txt; echo "EXIT_CODE: ${PIPESTATUS[0]}"If `EXIT_CODE` is non-zero, lint failed. Report failure clearly before proceeding to grouping.
Parse: file path, line:column, error code/rule, message, severity.
| Issue Count | Grouping Strategy | |-------------|-------------------| | < 10 | By file | | 10-50 | By directory | | 50-100 | By error type/rule | | > 100 | By component/module |
A stream is independent if: files don't import each other, fixes won't conflict, agents can work without knowledge of other streams.
Before emitting any Task call, count the agents you intend to launch in this turn.
All stream agents leave in the SAME TURN, before reading any agent output.
Forbidden sequences:
If you find yourself about to dispatch a stream agent in a turn AFTER any agent has already returned a result → STOP. You violated parallel dispatch. Report the violation and mark the phase INCOMPLETE rather than completing the trickle. (The verification loop in Phase 4 may dispatch a fresh round; that round is itself bound by the same rule.)
After the dispatch turn, verify all stream Task calls were emitted in that single turn. If fewer went out than scoped streams, the phase did NOT execute correctly. Mark INCOMPLETE and surface the dispatch failure — do NOT silently continue with a partial pool.
Emit all scoped Task calls (the count established in the STOP-CHECK above) in a SINGLE TURN, as one atomic batch.
**If your runtime exposes a `multi_tool_use.parallel` wrapper**, use it to dispatch the complete pool in one wrapped invocation. This is the canonical fan-out mechanism on OpenAI-style tool envelopes and on certain Anthropic SDK consumers — naming it explicitly activates parallel emission on runtimes where trickle-dispatch is the default behavior.
**If your runtime emits parallel tool_use blocks natively** (Claude Code with Claude models), `multi_tool_use.parallel` may not be needed — but naming it is harmless and serves as an enforcement anchor.
The STOP-CHECK, anti-trickle, and self-verify guards above remain binding regardless of which mechanism your runtime uses.
**Single turn with multiple Task calls** — one `ring:general-purpose` agent per stream.
Each agent receives: scope (files/dirs), issues (file:line:col + message), constraints (from above).
Dispatch when: 3+ files have issues, issues are in independent areas, fixes are mechanical.
Skip dispatch when: single file → fix directly, issues require architectural decisions, fixes would break things.
Re-run lint after all agents complete:
| Result | Action | |--------|--------| | Lint passes | ✅ Done | | Same issues remain | ⚠️ Investigate why fixes failed | | New issues appeared | 🔄 Analyze + dispatch new agents | | Fewer issues remain | 🔄 New streams, repeat |
After 5 iterations: report remaining issues and ask user.
**Success:** Initial issues, streams processed, agents dispatched, iterations, all pass, changes by stream.
**Partial:** Remaining issues with reasons (e.g., requires external types, intentional usage), recommended actions.
| Issue Type | Agent | |------------|-------| | TypeScript/JavaScript | `ring:general-purpose` | | Go | `ring:backend-go` | | Security lints | `ring:security-reviewer` for report/analysis only — security findings are **not auto-fixed**; escalate to human review | | Style/formatting | `ring:general-purpose` |
Proven engineering practices, enforced through skills. Ring is a comprehensive skills library and workflow system for AI agents that transforms how AI assistants approach software development.
Repo: LerianStudio/ring
Analyzing different approaches for a task or problem with structured comparisons, effort…
Auditing a service's production readiness against Ring engineering standards across base…
Cleaning redundant and obvious comments following clean code principles while preserving…
Commit changes with scope allowlist enforcement, atomic grouping, GPG-signed conventional…
Creating a handoff document that captures session state (completed work, decisions, open…
Creating an isolated git worktree for parallel branch work: selects the directory by priority…