Nonogram Solver (CP-SAT)

    by Rilz Labs

    1

    Solves nonogram puzzles of any size with OR-Tools CP-SAT using an exact run-length automaton encoding — no guessing, and every grid is re-verified against the clues.

    Free

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Solve nonogram puzzles of any size with OR-Tools CP-SAT
    • Re-verify every returned grid against the row and column clues
    • Accept row and column clues as JSON
    • Return the solved grid as ASCII art plus optional solution JSON

    Nonogram Solver (CP-SAT)

    Example session with this skill installed

    Solve this 5x5 nonogram for me. Row clues: [[1,1],[3],[1,1,1],[4],[1,1]]. Column clues: [[1,1],[3],[1,1,1],[4],[1,1]]. Return the solved grid as ASCII art and the solution as JSON.

    • Read your context and instructions
    • Compiled the nonogram solver cp-sat

    Solved — verified against all clues

    ASCII art (5x5)

    . # . # .
    
    # # # . .
    . # . # .
    
    # # # # .
    . # . # .
    

    (# = filled, . = empty)

    Solution JSON

    {
      "rows": 5,
      "cols": 5,
      "grid": [
        [0, 1, 0, 1, 0],
        [1, 1, 1, 0, 0],
        [0, 1, 0, 1, 0],
        [1, 1, 1, 1, 0],
        [0, 1, 0, 1, 0]
      ],
      "verified": true
    }
    

    How it was solved

    • Encoded the exact run-length rules as a CP-SAT automaton — no guessing, no trial and error.
    • OR-Tools CP-SAT found the grid that satisfies every row and column clue.
    • Every returned grid is re-verified against the clues before it is handed back: each row's runs are [1,1], [3], [1,1,1], [4], [1,1] and each column's runs match the given clues exactly.
    • If the clues had no solution, the solver would say so instead of returning a wrong grid.

    Batch solving

    The same JSON format works for whole puzzle sets: feed one puzzle after another to solve an entire collection for a game or a challenge. Requires Python 3 and the ortools pip package.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Solves nonogram puzzles of any size with OR-Tools CP-SAT using an exact run-length automaton encoding — no guessing, and every returned grid is re-verified against the clues before it is handed back. Feed row/column clues as JSON, get the solved grid as ASCII art plus optional solution JSON. Requires Python 3 and the ortools pip package.

    The problem Nonograms are easy to start and easy to get stuck on: a single wrong cell can silently break the whole grid, and trial-and-error guessing wastes time on larger puzzles.

    How it works

    1. Feed the puzzle in as row and column clues (JSON).
    2. The solver encodes the exact run-length rules as a CP-SAT automaton — no guessing, no heuristics.
    3. OR-Tools CP-SAT finds a grid that satisfies every clue.
    4. The grid is re-verified against the clues before it is handed back, so what you receive is a genuine solution.

    What you get The solved grid as readable ASCII art, plus optional solution JSON for use in a game, a challenge, or further processing.

    Batch solving Feed puzzle sets one after another to solve whole collections for a game or a challenge.

    SKILL.md-based skill. Requires Python 3 and the ortools pip package: pip install ortools. Input: row/column clues as JSON. Output: solved grid as ASCII art plus optional solution JSON.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Frequently Asked Questions

    Solves nonogram puzzles of any size with OR-Tools CP-SAT using an exact run-length automaton encoding — no guessing, and every grid is re-verified against the clues.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Nonogram Solver (CP-SAT) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free