argdown
БесплатноЗапускает вложенные скриптыНе проверенAuthor and iterate on `.argdown` argument-map files. Use when the user asks to "create an argdown", structure a debate / argument / pro-con map, lint a…
от htlin222★ 78 звёзд на GitHubОб этом скилле
argdown
Argdown is a Markdown-flavored DSL for argument maps. Source is a .argdown text file; the argdown CLI parses it, reports syntax errors with location info, and exports to SVG/DOT/HTML/JSON.
When this skill fires
- User asks to draft, edit, or lint a
.argdownfile - User wants to structure a debate / pro-con / objection tree / premise-conclusion argument and visualize it
- User explicitly invokes
$argdownor mentions "argument map", "argdown map", "claim/objection diagram"
Prerequisite
argdown CLI must be on PATH (/opt/homebrew/bin/argdown on this machine). Check with command -v argdown. If missing: npm install -g @argdown/cli. For SVG/PNG export, Graphviz is also needed: brew install graphviz.
Core workflow
Draft the
.argdownfile. Minimal skeleton:=== title: <topic> === # <Section> [Main claim]: One-sentence thesis. + <Supporting Arg>: Why the thesis holds. - <Counter Arg>: Why it might not. <Supporting Arg> (1) Premise. (2) Premise. ----- (3) [Main claim]Lint — there is no separate
lintsubcommand. The default invocation parses and logs syntax errors with line/col:argdown path/to/file.argdownOr use
scripts/lint.sh <file>(bundled): adds--throwExceptionsso exit code is non-zero on parser errors — suitable for an iterate-until-clean loop.Fix the reported errors. See "Gotchas" below for common ones.
Render once clean:
argdown map path/to/file.argdown ./svg -f svgOr
scripts/render.sh <file> [outdir]— wraps lint + map and prints the SVG path.Iterate if the map looks wrong — adjust statements, relations, or
--rankdir/label-mode flags.
Syntax cheat sheet
Full reference in references/syntax.md — load it when authoring a construct not covered here.
| Construct | Syntax | Notes |
|---|---|---|
| Statement (titled) | [Title]: text |
Same title = same equivalence class |
| Argument | <Title>: description |
Angle brackets, not equivalence-class |
| Premise-conclusion | (1) premise then ----- then (N) conclusion |
Consecutive numbering, no blank lines inside |
| Support | + <Arg> or + [Stmt] |
Indented under parent |
| Attack | - <Arg> |
|
| Contradiction | >< <Arg> |
symmetric |
| Undercut | _ <Arg> |
targets an inference |
| Direction | <- outgoing, +> incoming |
reverse the arrow |
| Reference | [Title] or <Title> alone |
reuse without redefining |
| Mention | @[Title] / @<Title> |
inline reference inside prose |
| Section | # Heading |
groups in the map |
| Frontmatter | === ... === block |
YAML config; mode: strict toggles strict relations |
| Inference detail | --\nModus Ponens\n{uses: [1,2]}\n-- |
optional between premise list and conclusion |
| Comment | // line, /* block */, <!-- html --> |
What the linter catches vs tolerates
Argdown's parser is permissive — it recovers from many surface errors and renders something. lint.sh (via --throwExceptions) fails reliably only on a narrow set of hard parse errors. The rest must be caught by visually checking the rendered SVG.
Hard errors lint.sh will fail on:
- Malformed PCS: missing
-----inference line, broken inference-detail block (--/--), parser unable to reduce to a validpcsrule. - Unclosed inline formatting that spans into the next block. Most common offender: an underscore in an identifier (
redact_long.go,chat_session_id) opens an italic span, the parser keeps reading expecting a closing_, and chokes when it hits a blank line or unexpected token. Error message namesstatementContent > italicin the rule stack.
Silent / tolerated (renders despite looking broken):
- Mismatched brackets like
[Claim>— lexed as best-effort text. - Non-consecutive PCS numbering (
(1),(3),(5)) — argdown re-numbers internally. - Pure gibberish lines — parsed as statements.
@[Title]mentions to titles that were never defined — warning at most.- Relation symbols at the wrong indent — silently re-interpreted as top-level.
Implication: after the lint passes, always render and skim the SVG before declaring the file correct.
Inline-formatting footguns
The body of a statement or argument description is parsed for markdown-style inline formatting before the rest of the rules apply. That means:
| Trigger | Effect | Mitigation |
|---|---|---|
_word_ |
italic span | Avoid bare underscores in identifiers — use - or wrap in backticks. |
*word* |
italic span | Same as above for asterisks. |
**word** |
bold span | Don't paste markdown bold into descriptions unless balanced. |
[Anything] mid-prose |
parsed as a statement reference | Rephrase or use a different bracket style. |
<word> mid-prose |
parsed as an argument reference | Same. |
When in doubt, write descriptions as plain prose and put code-like tokens in `` `backti
Установить argdown в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл argdown?
Author and iterate on `.argdown` argument-map files. Use when the user asks to "create an argdown", structure a debate / argument / pro-con map, lint a `.argdown` file, or export an argument map to SVG/DOT/HTML/JSON via the `argdown` CLI. Workflow — draft, then run `argdown` on the file to lint with line/col errors, fix, then `argdown map -f svg` to render.
Как установить скилл argdown?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл argdown запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic