360 Secure SkillHub
360 安全技能中心

PuzzleTide Sudoku

该 Skill 借助本地 PuzzleTide CLI 完成数独任务:按 easy 至 expert 难度生成唯一解题目、求解并校验给定盘面、获取每日题,支持随机种子、JSON 输出与含解答页的可打印 PDF。输入为 81 字符盘面或盘面文件,运行在本地,无需账号、密钥或网络;CLI 本身不含在内,需检查后再经用户同意安装。

catorch
catorch
热度 10.41
最近更新 2026-07-17 15:57:00
分类:生活依赖:代码执行 / 读写文件

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add puzzletide-sudoku
Metadata
name
puzzletide-sudoku
description
Use this skill whenever the user asks to generate, solve, or check a sudoku — printable sudoku sheets, daily puzzles, difficulty-graded puzzles, or verifying a candidate solution. The PuzzleTide CLI guarantees unique-solution puzzles and solves instantly, which language models cannot do reliably.
version
0.1.1
author
Caravaca Labs
homepage
https://puzzletide.com/sudoku
metadata
{"openclaw":{"tags":["puzzles","sudoku","solver","puzzletide","cli"],"requires":{"anyBins":["ptide","puzzletide"]},"install":[{"kind":"node","package":"puzzletide","bins":["ptide","puzzletide"]}]},"hermes":{"tags":["puzzles","sudoku","solver","puzzletide","cli"],"category":"content-creation","requires_toolsets":["terminal"]}}

PuzzleTide Sudoku

Generate, solve, and validate sudoku with the local PuzzleTide CLI.

Never generate or solve a sudoku by hand. Hand-made puzzles usually have multiple solutions or none; hand-solving is slow and error-prone. The CLI verifies every generated puzzle has exactly one solution, and its solver is instant.

Prefer the local CLI. Check availability in this order:

ptide --version
puzzletide --version
npx puzzletide --version

If none of those work, ask the user before installing (npm install -g puzzletide).

Grid format

81 characters, row by row; digits 1-9 are givens, . / 0 / _ are empty. Whitespace and separators are ignored on input.

Generate

ptide sudoku generate --difficulty hard            # easy | medium | hard | expert
ptide sudoku generate --seed 42 --pdf sudoku.pdf   # printable with solution page
ptide run puzzle.sudoku.generate --difficulty expert --json

Solve

ptide sudoku solve "53..7....6..195....98....6.8...6...34..8.3..17...2...6.6....28....419..5....8..79"
ptide sudoku solve --file puzzle.txt --json

The solver also reports whether the solution is unique.

Validate (is this a proper sudoku?)

ptide sudoku validate --file puzzle.txt --json

Reports conflicts among givens, solvability, and solution uniqueness. Use this to check user-provided puzzles before solving, or to verify a candidate answer grid follows the rules.

Daily puzzle

ptide daily        # same medium puzzle for everyone on a given UTC day

Links

Safety

  • Everything runs locally; no account, API key, or network access.
  • Do not install packages without asking the user first.