/arg2p:arg2p-formalizefrom Arg2P
Formalizes reasoning problems with conflicting information, exceptions, norms, preferences, or burdens of proof as an Arg2P argumentation theory. Guides framework selection (ASPIC+, ABA, abstract) and knowledge extraction.
Ships in Arg2P. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Arg2P is a structured argumentation engine (ASPIC+, ABA, abstract
frameworks) on the tuProlog engine. This skill turns a reasoning problem in natural language into an Arg2P theory
and the flags to solve it with. Computing the answer is the job of the arg2p-solve skill: never simulate the
semantics by hand.
The profile is the first line of the theory, graphBuildMode(Profile)., and tells Arg2P which framework the theory is
written in. It refuses a theory written outside it, with an error saying why.
| Profile | Use it when | Refuses |
|---|---|---|
aspicPlus (the default) | knowledge is facts and rules, possibly conflicting, with exceptions, evidence, norms, preferences: most real problems | a contrary targeting an axiom or the conclusion of a strict rule |
aspic | as aspicPlus, but no preference counts: every attack succeeds | as aspicPlus |
aspicDefeasible | everything is defeasible, facts are rules with no premise (r : [] => a.) | strict rules, axioms, premises |
aba, abaPlus | the problem is assumptions and their contraries (assumption-based argumentation); abaPlus adds preferences between assumptions | defeasible rules, ordinary premises, a rule concluding an assumption; for abaPlus, a theory without Weak Contraposition |
abstract | only who attacks whom matters: a debate, a thread of objections, a graph given as such | rules, premises, axioms; preferences, conflicts, burdens (sup/2, conflict/2, bp/N) |
meta | the rules, conflicts and preferences are themselves argued, as the readings of an ambiguous text are (step 3, and references/syntax.md) | |
free | every flag is set by hand, with no preset | nothing |
What each profile presets and checks: https://tuprolog.github.io/arg2p-kt/docs/profiles/.
Abstract is right whenever the inner structure of the arguments does not matter. A debate can be abstracted on purpose: each self-contained position is an argument, each "X objects to Y" an attack. Keep a glossary from each name to the position it stands for.
graphBuildMode(abstract).
a. % an argument
b.
c.
a -> b. % a attacks b
b <-> c. % b and c attack each other
Structured (ASPIC+) is the default for real problems. If a structured encoding keeps collapsing (no rules can be articulated, only pairwise disagreement), fall back to abstract.
a1 :-> fact.f1 :=> fact.r : body -> head.r : body => head.-, exceptions (weak negation ~ or undercut), incompatible conclusions
(conflict/2).sup/2.o/1, permissions p/1.bp/N.Use axioms and strict rules only for what is truly indisputable: what rests on them cannot be attacked, so counter-arguments become impossible. When in doubt, use the defeasible forms.
A formalization inherits every misreading of its source. Before encoding a rulebook, statute, policy, or any text longer than a few rules, write a ledger of the points where the text underdetermines the meaning:
For each entry, record the readings, the one chosen and why. When a reading changes the answer, encode both in
the theory, with the profile meta ("Readings of an ambiguous clause" in references/syntax.md): each reading
argues the rules it applies, and the readings exclude each other. Solved under preferred, each labelling is one
reading; under grounded, what depends on the reading is und. A verdict that differs between the readings is
interpretation-bound: say so. The reading chosen is argued preferred (sup/2), and the other stays in the graph. If
the person who gave the text is reachable, ask them: the entry is already phrased as the question.
The syntax, with examples of every construct, is in references/syntax.md. In short:
r1 : bird(X), ~(penguin(X)) => flies(X). % defeasible, unless penguin(X) is established
r2 : penguin(X) -> bird(X). % strict
f1 :=> penguin(tweety). % ordinary premise
a1 :-> sparrow(jack). % axiom
r3 : sparrow(X) -> bird(X).
r4 : witness_unreliable => undercut(r1). % r1 does not apply
sup(r1, r4). % r1 is preferred to r4
conflict([a], [b]). % a attacks b (one way: add conflict([b], [a]) for both)
r5 : age(X), prolog(X >= 18) => adult(X). % a Prolog computation, after its variables are bound
bp(guilty). % the burden of persuasion is on guilty
Rule names are unique atoms. Without sup/2, two conflicting defeasible conclusions both end up undecided.
Flags are Prolog facts, given to the solver beside the theory (or written in the theory). With no flags, the solver
is given argumentLabellingMode(grounded)., statementLabellingMode(statement). and queryMode.; the flags you give
override only the flags they state, the others keep the value their profile presets or their default (query mode stays
on unless you state queryMode(off).). Every flag is in references/flags.md; the choices that matter:
argumentLabellingMode(S):
grounded (the default): skeptical, always exactly one labelling. "What must be accepted?"preferred, stable, complete, semiStable, stage, cf2, ...: several labellings. "Which positions are
defensible?" stable may have none.bpGrounded, bpGroundedPartial, bpGroundedComplete: required when the theory declares bp/N.sup/2 in the head of a rule): graphExtension(defeasiblePref). (one
superiority) or graphExtension(defeasibleAllPref). (comparators needing several), in place of
standardPref: a theory has one preference mode, and stating two is refused. Under them only concluded
preferences count: write a fixed one as a rule with no premise (p1 : [] => sup(r1, r2).), not a sup/2 fact. A
theory stating graphExtension replaces the profile's: restate graphExtension(rebutRestriction). if you still
want it.orderingPrinciple(last). (the default) or weakest.; orderingComparator(elitist). (the default),
democrat. or normal.queryMode.: goal-directed evaluation: only the arguments relevant to the query are built, which is faster on
large theories. State it when you give flags of your own.Write the theory to a .arg2p file (or keep it in the conversation for a short one), and give:
guilty, flies(X)), a value the theory computes (answer(V)), or the whole
graph (arg2p::solve(In, Out, Und), the default).Then solve it with the arg2p-solve skill. Do not predict the labelling yourself.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tuprolog/arg2p-kt --plugin arg2p3 skills in this plugin
/arg2p-exploreShow the user the Arg2P solver of a theory, to explore its results themselves (solutions, argument graphs, stages, flags), when they want to see, browse, visualize or play with them./arg2p-solveSolve an Arg2P argumentation theory with the Arg2P solver and report what is accepted, rejected or undecided. Use whenever argumentation results are needed; never simulate the semantics by hand.Other plugins' skills for the same job