propositional-logic — Claude Code skill: what it does, how to install
Guides solving propositional logic problems using truth tables, Z3 proofs, and semantic tableaux.
MIT 1 installs ★ 3,951 updated 2026-01-26
npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a claude-codeWhat propositional-logic does
This skill outlines a structured decision tree for mathematical logic tasks. It directs the agent to classify formulas into tautologies, contradictions, or contingent statements, picking the right verification route. Formulas with up to four variables are evaluated via truth tables in sympy_compute.py, while natural deduction and satisfiability checks rely on Z3.
The skill relies on terminal execution via uv run python -m runtime.harness. If uv or the local helper scripts scripts/z3_solve.py and scripts/sympy_compute.py are missing from the workspace, the agent cannot execute automated proofs.
What it helps with
- check propositional satisfiability using Z3
- generate truth tables for formulas with 4 or fewer variables
- verify deductive arguments with Modus Ponens
- decompose logical statements using semantic tableaux
Example prompts for the agent
- Check satisfiability for "And(p, Implies(p, q), Not(q))" using z3_solve.py
- Generate a truth table for "p & (p >> q) >> q" using sympy
- Verify whether "Implies(And(p, Implies(p, q)), q)" is a tautology
How to install propositional-logic
1Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a claude-code2Manually: put the files in place
~/.claude/skills/propositional-logic/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/propositional-logic/
1Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a codex2Manually: put the files in place
.agents/skills/propositional-logic/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a cursor2Manually: put the files in place
.cursor/skills/propositional-logic/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install parcadei/Continuous-Claude-v3 .claude/skills/math/mathematical-logic/propositional-logic2Manually: put the files in place
.github/skills/propositional-logic/SKILL.md1Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a gemini-cli2Platform CLI
gemini skills install https://github.com/parcadei/Continuous-Claude-v3 --path .claude/skills/math/mathematical-logic/propositional-logicManually: put the files in place
.devin/skills/propositional-logic/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about propositional-logic
How to install propositional-logic in Claude Code?
Run npx skills add parcadei/Continuous-Claude-v3 --skill propositional-logic -a claude-code in your terminal. The configuration is placed at ~/.claude/skills/propositional-logic/SKILL.md.
What does propositional-logic do?
It guides the agent through decision steps and command patterns to verify mathematical logic formulas with SymPy and Z3.
What dependencies are required to run the solvers?
You need uv installed, Bash access, and the bundled scripts/z3_solve.py and scripts/sympy_compute.py scripts inside your environment.
Source text
SKILL.md · MIT
--- name: propositional-logic description: "Problem-solving strategies for propositional logic in mathematical logic" allowed-tools: [Bash, Read] --- # Propositional Logic ## When to Use Use this skill when working on propositional-logic problems in mathematical logic. ## Decision Tree 1. **Identify Formula Structure** - Classify: tautology, contradiction, or contingent? - Main connective: AND, OR, IMPLIES, NOT, IFF? - `z3_solve.py sat "formula"` to check satisfiability 2. **Truth Table Method** - For small formulas (<=4 variables): enumerate all valuations - `sympy_compute.py truthtable "p & (p -> q) -> q"` - Tautology = all T, Contradiction = all F 3. **Natural Deduction** - Apply inference rules: Modus Ponens, Modus Tollens - Conditional proof: assume antecedent, derive consequent - `z3_solve.py prove "Implies(And(p, Implies(p,q)), q)"` 4. **Semantic Tableaux** - Build tree by decomposing formula - Closed branches = contradictions - All branches closed = valid argument ## Tool Commands ### Z3_Sat ```bash uv run python -m runtime.harness scripts/z3_solve.py sat "And(p, Implies(p, q), Not(q))" ``` ### Z3_Tautology ```bash uv run python -m runtime.harness scripts/z3_solve.py prove "Implies(And(p, Implies(p, q)), q)" ``` ### Sympy_Truthtable ```bash uv run python -m runtime.harness scripts/sympy_compute.py truthtable "p & (p >> q) >> q" ``` ### Z3_Modus_Ponens ```bash uv run python -m runtime.harness scripts/z3_solve.py prove "Implies(And(p, Implies(p,q)), q)" ``` ## Cognitive Tools Reference See `.claude/skills/math-mode/SKILL.md` for full tool documentation.
© parcadei · MIT · parcadei/Continuous-Claude-v3