# Nonogram Solver (CP-SAT)

> 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.

Nonogram Solver (CP-SAT) is a free AI agent skill on Agensi by Rilz Labs, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Rilz Labs](https://www.agensi.io/creators/rilz)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/nonogram-solver-cp-sat
- Tags: ai-agents, productivity, research, nonogram, puzzle-solver, cp-sat, ortools, python

## 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

## 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.

## Requires

- Python

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Nonogram Solver (CP-SAT) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Nonogram Solver (CP-SAT) do?

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.

### Which AI agents support Nonogram Solver (CP-SAT)?

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.

### How do I use Nonogram Solver (CP-SAT)?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
