ffsshhttiikk/opencode-agents-skills/constraint-satisfaction

Claude Code and agent skill by ffsshhttiikk/opencode-agents-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Constraint satisfaction problems

Install

npx vskill@latest install ffsshhttiikk/opencode-agents-skills/constraint-satisfaction

SKILL.md

The same SKILL.md was published earlier as ffsshhttiikk/opencode-agents-skills/constraint-satisfaction.

What I do

  • Formulate and solve constraint satisfaction problems
  • Implement search algorithms
  • Apply backtracking and propagation
  • Design constraint solvers
  • Optimize constraint solving
  • Handle complex combinatorial problems

When to use me

Use me when:

  • Scheduling and planning problems
  • Resource allocation
  • Puzzle solving (Sudoku, crossword)
  • Configuration problems
  • Combinatorial optimization

Key Concepts

CSP Framework
Variables: {X1, X2, X3, ..., Xn}
Domains: {D1, D2, D3, ..., Dn}
Constraints: {C1, C2, C3, ..., Cm}
Goal: Find assignment to all variables satisfying all constraints
Python CSP Example
python
from constraint import Problem, BacktrackingSolver
# Define problem
problem = Problem(BacktrackingSolver())
# Variables with domains
problem.addVariable("A", [1, 2, 3, 4])
problem.addVariable("B", [1, 2, 3, 4])
problem.addVariable("C", [1, 2, 3, 4])
# Constraints
def all_different(vars):
return len(set(vars)) == len(vars)
problem.addConstraint(all_different, ["A", "B", "C"])
problem.addConstraint(lambda a, b: a + b > 4, ["A", "B"])
problem.addConstraint(lambda b, c: b != c, ["B", "C"])
# Solve
solutions = problem.getSolutions()
print(solutions)
Algorithms
  • Backtracking: Systematic search
  • Forward Checking: Prune domains early
  • Arc Consistency (AC-3): Remove inconsistent values
  • Min-Conflicts: Local search for large problems
  • Genetic Algorithms: For complex constraints
Applications
  • Scheduling: Employee rostering, class scheduling
  • Routing: Vehicle routing with constraints
  • Puzzles: Sudoku, N-Queens
  • Configuration: Product configuration
  • Planning: Task ordering with dependencies

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
Repository forks
2
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ffsshhttiikk/opencode-agents-skills/constraint-satisfaction/badge)](https://verified-skill.com/skills/ffsshhttiikk/opencode-agents-skills/constraint-satisfaction)

Something wrong with this skill or its page? Tell us.