i18n/de/skills/evaluate-boolean-expression/SKILL.md
Bewerten and simplify Boolean expressions using truth tables, algebraic laws (De Morgan, distributive, absorption, idempotent, consensus), and Karnaugh maps for up to six variables. Verwenden wenn you need to reduce a Boolean expression to its minimal sum-of-products or product-of-sums form, verify logical equivalence zwischen two expressions, or prepare a minimized function for gate-level implementation.
npx skillsauth add pjt222/agent-almanac evaluate-boolean-expressionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reduzieren a Boolean expression to its minimal form by parsing it into canonical notation, constructing a truth table, applying algebraic simplification laws, performing Karnaugh map minimization (up to six variables), and verifying that the simplified expression is logically equivalent to the original.
A AND (B OR NOT C), A * (B + C'), A & (B | ~C))Konvertieren die Eingabe expression into a standard internal representation:
* for AND, + for OR, ' for NOT (complement), ^ for XOR.X = X*(Y + Y').X = X + Y*Y'.## Normalized Expression
- **Variables**: [A, B, C, ...]
- **Variable count**: [n]
- **Original expression**: [as given]
- **Canonical SOP (minterms)**: Sigma m(i, j, k, ...)
- **Canonical POS (maxterms)**: Pi M(i, j, k, ...)
- **Don't-care set**: d(i, j, ...) [if any]
Erwartet: The expression is converted to canonical SOP and/or POS with all minterms/maxterms explicitly listed and don't-care conditions separated.
Bei Fehler: If the expression contains syntax errors or ambiguous operator precedence, request clarification. Standard precedence is: NOT (highest) > AND > XOR > OR (lowest). If the variable count exceeds 6, note that the K-map step will require the Quine-McCluskey algorithm stattdessen.
Erstellen the complete truth table to establish die Funktion's behavior over all input combinations:
X stattdessen of 0 or 1.## Truth Table
| A | B | C | F |
|---|---|---|---|
| 0 | 0 | 0 | _ |
| 0 | 0 | 1 | _ |
| ... | ... | ... | ... |
Erwartet: A complete truth table with 2^n rows, outputs matching the canonical form, and don't-cares ordnungsgemaess marked.
Bei Fehler: If the truth table disagrees with the canonical form, recheck the expansion in Step 1. A common error is misapplying De Morgan's law waehrend the canonical expansion -- verify each expansion step individually.
Reduzieren the expression using Boolean algebra identities:
A + 0 = A, A * 1 = A, A + 1 = 1, A * 0 = 0.A + A = A, A * A = A.A + A' = 1, A * A' = 0.A + A*B = A, A * (A + B) = A.(A * B)' = A' + B', (A + B)' = A' * B'.A * (B + C) = A*B + A*C, A + B*C = (A + B) * (A + C).A*B + A'*C + B*C = A*B + A'*C (the B*C term is redundant).A*B' + A'*B = A ^ B.## Algebraic Simplification Trace
1. Original: [expression]
2. Apply [law name]: [result]
3. Apply [law name]: [result]
...
n. Final algebraic form: [simplified expression]
Erwartet: A step-by-step reduction with each law application cited, converging on a simpler expression. The trace provides a verifiable proof of equivalence.
Bei Fehler: If the expression nicht simplify further but appears non-minimal, proceed to Step 4 (K-map). Algebraic methods sind nicht guaranteed to find the global minimum -- they depend on the order in which laws are applied.
Use a K-map to find the provably minimal SOP or POS form (for up to 6 variables):
## K-map Result
- **Prime implicants**: [list with covered minterms]
- **Essential prime implicants**: [list]
- **Minimal SOP**: [expression]
- **Minimal POS**: [expression, if requested]
- **Literal count**: [number of literals in minimal form]
Erwartet: A minimal SOP (and/or POS) with the fewest literals possible, with all prime implicants and essential prime implicants documented.
Bei Fehler: If groupings are ambiguous (multiple minimal covers exist), list all equivalent minimal forms. If the variable count exceeds 6, switch to the Quine-McCluskey tabular method or Espresso heuristic and note the change in approach.
Bestaetigen logical equivalence zwischen the simplified and original expressions:
## Equivalence Verification
- **Method**: [truth table comparison / algebraic proof / both]
- **Mismatched rows**: [none, or list row numbers]
- **Verdict**: [Equivalent / Not equivalent]
- **Final minimal expression**: [the verified result]
Erwartet: The simplified expression matches the original on all non-don't-care inputs. The final minimal form is stated clearly.
Bei Fehler: If any row mismatches, trace der Fehler back durch Steps 3-4. Common causes: incorrect K-map grouping (non-rectangular or non-power-of-2 group), forgetting wrap-around adjacency, or accidentally grouping a 0 cell.
A + B * C as (A + B) * C stattdessen of A + (B * C) changes die Funktion entirely.design-logic-circuit -- map the minimized expression to a gate-level circuitargumentation -- structured logical reasoning that shares formal logic foundationstesting
Launch all available agents in parallel waves for open-ended hypothesis generation on problems where the correct domain is unknown. Use when facing a cross-domain problem with no clear starting point, when single-agent approaches have stalled, or when diverse perspectives are more valuable than deep expertise. Produces a ranked hypothesis set with convergence analysis and adversarial refinement.
tools
Write integration tests for a Node.js CLI application using the built-in node:test module. Covers the exec helper pattern, output assertions, filesystem state verification, cleanup hooks, JSON output parsing, error case testing, and state restoration after destructive tests. Use when adding tests to an existing CLI, testing a new command, verifying adapter behavior across frameworks, or setting up CI for a CLI tool.
development
Screen a proposed trademark for conflicts and distinctiveness before filing. Covers trademark database searches (TMview, WIPO Global Brand Database, USPTO TESS), distinctiveness analysis using the Abercrombie spectrum, likelihood of confusion assessment using DuPont factors and EUIPO relative grounds, common law rights evaluation, and goods/services overlap analysis. Produces a conflict report with a risk matrix. Use before adopting a new brand name, logo, or slogan — distinct from patent prior art search, which uses different databases, legal frameworks, and analysis methods.
tools
Scaffold a new CLI command using Commander.js with options, action handler, three output modes (human-readable, quiet, JSON), and optional ceremony variant. Covers command naming, option design, shared context patterns, error handling, and integration testing. Use when adding a command to an existing Commander.js CLI, designing a new CLI tool from scratch, or standardizing command structure across a multi-command CLI.