/arg2p:arg2p-solvefrom Arg2P
Solves Arg2P argumentation theories using the Arg2P solver (MCP server or Python package) and reports accepted/rejected/undecided labellings. Never simulate semantics manually.
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.
None: SKILL.md is the whole skill.
This skill computes the labellings of an Arg2P theory (written with the arg2p-formalize skill, or given by the user)
and reports them. The solver does the reasoning: never predict a labelling yourself, and never report one the
solver did not give.
Use the tools of the Arg2P MCP server when they are there (solve, answer, check, settings, explore):
| Tool | Takes | Gives |
|---|---|---|
check | text, kind (theory, the default, or query) | whether the text parses, and where it does not (line, column, token) |
answer | theory, query, flags, timeoutSeconds | the statements matching a literal (flies(X), -guilty) labelled in, out and und: answers, one per labelling, or one across them all with answerMode(credulous) or answerMode(skeptical) |
solve | theory, query, flags, maxSolutions, timeoutSeconds | the solutions of any query (default arg2p::solve(In, Out, Und)), with their bindings and the argument graph of the last one: every argument with its conclusion, top rule and label, every attack with its type |
settings | theory, flags, timeoutSeconds | the value in effect of every flag for the theory: its profile, its semantics, ... |
explore | theory, query, flags, timeoutSeconds | shows the user the solver of the theory, to explore the results themselves (see the arg2p-explore skill) |
The theory is text, the flags Prolog facts (see arg2p-formalize); theory, and the query of answer, are
required (and the text of check). timeoutSeconds is 60 by default.
The errors are results to read, not to work around:
solve, answer, settings and
explore, saying why (with the line and column of a syntax error). Fix the theory or the profile; never answer in
the solver's place.timeoutSeconds is stopped, and the tool says so: see the sanity checks below.Without the MCP server, the Python package does the same (it bundles its Java runtime: nothing else to install):
uvx arg2p theory.arg2p -q "flies(tweety)" -s preferred # or: pip install arg2p, then arg2p ...
from arg2p import Arg2p, Flags, Semantics
arg2p = Arg2p.of(theory, Flags.defaults().argument_labelling_mode(Semantics.PREFERRED))
answers = arg2p.answer("flies(tweety)") # one per labelling: in_statements, out_statements, und_statements
for graph in arg2p.graphs(): # one per labelling
print(graph.conclusions("in"))
To install the MCP server itself, see https://tuprolog.github.io/arg2p-kt/docs/run/#ai-assistants-mcp.
check, with the theory as its text). A syntax error comes with its line and
column: fix the theory, do not guess around it.settings): the profile (graphBuildMode) and the semantics (argumentLabellingMode) in
effect must be the ones the formalization chose. A profile refuses a theory written outside its framework, with an
error saying why: read the error, and fix the theory or the profile.answer with the literal;solve with arg2p::solve(In, Out, Und), and maxSolutions high
enough to see them all (each labelling is a solution; a final no means there are no more);solve with a query on it (answer(V)), reading the bindings.solve to justify the result: which argument attacks which, which attack succeeds.explore; without the MCP server, the page of arg2p page in a code sandbox, or else a link to
the web playground: see arg2p-explore).Under preferred, stable, complete and the other semantics with several labellings, answer gives one answer
for each labelling, or one across them all with the flag answerMode(credulous) or answerMode(skeptical); with
solve, read every solution:
stable may have no labelling at all.sup/2 preferences, or every claim encoded as mutually attacking
premises: revisit the formalization.:->) instead of a premise (:=>).timeoutSeconds, or simplify.State the conclusion first, in natural language through the glossary of the formalization; then justify it by the argument structure (which argument defeats which). Name the profile, the semantics and the flags used. Mention the undecided statements explicitly, and the interpretation choices the verdict depends on.
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-formalizeFormalize a reasoning problem with conflicting information, exceptions, norms, preferences or burdens of proof as an Arg2P argumentation theory, before solving it with arg2p-solve.Other plugins' skills for the same job