Dorodango

From athola/claude-night-market · View interactive version

Dorodango is an AI agent skill from the GitHub repository athola/claude-night-market. Polishes working code through successive quality passes in fresh subagents. Use after tests pass when code needs multi-dimension refinement before release.

How to use this skill

Skill file

Dorodango Polishing Workflow

Named after the Japanese art of polishing a ball of

dirt into a high-gloss sphere. Applied to code: take

the initial implementation (the "mud ball") and refine

it through successive quality passes until it shines.

When To Use

pass

quality dimensions

When NOT To Use

skill directly: pensive:code-refinement, etc.)

Pass Sequence

Four quality dimensions, each a self-contained pass:

  1. Correctness - run tests, fix failures
  2. Clarity - code readability and structure
  3. Consistency - naming, patterns, style alignment
  4. Polish - documentation, error messages, edges

See modules/pass-definitions.md for detailed scope

of each pass type.

Convergence Model

passing subagent's own count alone: correctness on the

test command's exit code, clarity and consistency on

the linter and formatter exit codes plus a reviewer

count of 0, polish on a reviewer count of 0 from a

fresh subagent that did not make the edits

matching exit code recorded in the state file has not

converged

regression in a converged dimension un-converges it,

and that dimension is re-run before the run completes

human with recommendation to split into smaller units

State Persistence

State tracked in .attune/dorodango-state.json:

{
  "target": "plugins/foo",
  "started_at": "2026-03-18T12:00:00Z",
  "pass_count": 3,
  "passes": [
    {
      "type": "correctness",
      "issues_found": 2,
      "issues_fixed": 2
    },
    {
      "type": "clarity",
      "issues_found": 5,
      "issues_fixed": 5
    },
    {
      "type": "consistency",
      "issues_found": 0
    }
  ],
  "converged_dimensions": ["consistency"],
  "converged": false
}

This file enables resume across sessions. On resume,

skip converged dimensions and continue from the next

unconverged dimension.

Subagent Isolation

Each pass dispatches a self-contained subagent to

prevent context accumulation. The subagent receives:

Subagent dispatch is optional for targets under 100

lines of code. In-session review is enough for small

files.

Workflow

  1. Initialize state file (or load existing)
  2. Determine next unconverged dimension
  3. Dispatch subagent for that dimension
  4. Record results in state file
  5. If dimension converged (0 issues), mark it
  6. If all dimensions converged or 10 passes reached,

stop

  1. Otherwise, proceed to next dimension

Cross-References

with emotional framing for better results

Exit Criteria

(correctness, clarity, consistency, polish) listed under converged_dimensions.

convergence, the skill surfaces the unconverged dimensions to the user with a recommendation

to split the target into smaller units.

correctness pass that finds failing tests never marks the dimension as converged.

formatter exit codes recorded as 0 in the state file beside the

reviewer's count. A 0 issues claim with no exit code does not

converge a dimension.

in the state file (converged_dimensions shrinks), and the

dimension is re-run before converged: true.

the state file recording individual pass results rather than a single bulk entry.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.