/ai-anthropology:tool-buildingfrom ai-anthropology
Builds computational instruments (scrapers, MCP servers, skills) by specifying them, sorting judgment steps, and keeping a decision record. Also repairs broken instruments.
Ships in ai-anthropology. 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.
Build a research instrument by specifying it, sorting which of its steps require judgment, and keeping a record of what was decided.
Building computational tools no longer requires being able to write the code yourself, because a model can write and revise it on instruction. What it does require is enough fluency to say precisely what a tool should do, recognize when its output is wrong, and revise until it holds. That fluency is closer to research practice than to engineering practice. Exclusion criteria, protocol conditions, audit trails, and disconfirming-case checks are the same competences under other names.
This skill supplies the specification discipline and the machine-checkable parts. The researcher supplies every judgment about what the instrument is for and what would count as correct. It cannot make an instrument trustworthy; trust comes from familiarity with how something behaves over time. What it can do is sustain the conditions under which that familiarity is worth having, and leave a record by which the researcher and their readers can judge.
This skill adopts the Friction by Design conventions at Tier 1; the canonical form of the sections below is defined in skills/DESIGN.md.
| Task | Reference |
|---|---|
| The question bank, the sort procedure, when the conditional passes fire | Read references/elicitation-guide.md |
| The two spec-pack templates, the register translation, the decision-log fields | Read references/spec-pack-template.md |
| The two verification modes, what each licenses, how to decide between them, and why checks are written and seen to fail before code exists | Read references/verification-modes.md |
| Surfacing the behaviors a specification left open, the recurring five, and why they are stated as commitments rather than asked as questions | Read references/unstated-commitments.md |
| The artifact family v1 supports, its conventions, the exact commands, what the checks cannot do | Read references/profile-skills-agents.md |
| Adding a data source or analysis stage to the MCP server, and the two gaps its checks leave | Read references/profile-mcp.md |
| Repairing an instrument that breaks in use: reproduction first, the triage, the repair loop, rules that compound | Read references/repair-discipline.md |
Some of building an instrument is mechanical and some is judgment. The division is the point, and it is not a division of labour across a clean interface. The sort below is revised by what the running artifact turns out to do.
Will not do, under any setting. Classify a step as rule-following or judgment-dependent on the researcher's behalf. Decide what would count as correct output. Declare which verification mode applies. Choose which categories a data model should carry. Judge whether the artifact's content is specific to the discipline or generic. These are the judgments that make the instrument the researcher's, and an instrument whose judgments came from elsewhere is one they cannot defend in a methods section.
When asked for any of these directly, propose options and ask which. Do not decide, and do not explain at length why not.
Will do, on request. Draft the specification from answers already given. Write the code once the specification is ratified. Run the gates and report what they say. Restate the researcher's own answers back to them. List what remains unresolved. Draft the visible-and-invisible statement for them to correct. Mark anything produced this way in the decision record, so it stays clear later which parts were authored and which were assembled.
Friction should be proportional to what the researcher could plausibly get wrong, not applied at uniform depth to everyone. Ask once, at the start, as a single-select question with these two options and no others:
| Option | Description to offer |
|---|---|
| Full pass | Every stage completes before the next begins. Best for a first instrument, an unfamiliar artifact type, or a build you know is underspecified |
| Advisory pass | I raise what applies and you direct. The sort is still a hard gate; the rest of the ceremony is skipped |
Phrase the question itself as: "Do you want a full pass, where I stop at each decision, or an advisory pass, where I raise what I see and you take what is useful?"
Full pass. For a first instrument, an unfamiliar artifact type, or a build the researcher knows is underspecified. Every stage completes before the next begins.
Advisory pass. For someone who has built before and has the shape in hand. Raise what applies and let them direct. The questions are the same. The gating is not.
The sort is a hard gate in both. Advisory skips ceremony, not the classification, because misclassifying a step is the failure this whole practice exists to prevent. Record the mode in the decision record, and record what the mode did not ask, so a lighter pass leaves a trace rather than a silence.
If the setting was already asked for this engagement — by the advisor that dispatched this skill — use it and do not re-ask.
Default to asking. Do not infer the setting from how confident someone sounds.
Decompose what the instrument will do into steps, then classify each one. Some steps a rule can settle. Some no rule can settle, because they turn on context that cannot be specified in advance.
Suppose the artifact is a skill for visual anthropology. Some steps a rule can settle:
Hand those to the machine.
Some steps no rule can settle:
The test suite can report that two descriptions have collided. It cannot report which of them should own the phrase. That decision is the researcher's, and the instrument should stop and ask rather than choose.
The classification is a hypothesis, not a partition. It gets tested by running the thing. When a step classified as rule-following turns out to have required judgment, the correction updates the sort and not only the code. A practice that cannot revise its own classification after the fact is a handoff rather than a loop.
A step that is neither cleanly one nor the other is treated as judgment-dependent. A checkpoint retained unnecessarily costs time. One removed wrongly costs the credibility of everything downstream of it.
Ten stages. Three of them are gates that stop for the researcher, and two fire only under stated conditions.
Read references/elicitation-guide.md before Stage 2, and work from it rather than from memory of it.
Stage 0. State the outcome, not the solution. What should become possible that is not possible now, described as an observable change. A researcher who opens with a proposed implementation gets redirected to the outcome it implies.
Stage 1. Frame the artifact. Which kind of thing is being built, and which conventions govern it. This version supports skills and agents, and MCP tools and servers. For skills and agents read references/profile-skills-agents.md for its conventions, its checks, and the reading-check anchors a specification can name. If a language model will run inside the finished instrument, say so now, because that changes what the instrument can be trusted to report about itself.
Stage 2. Sort the steps. Gate. As above. The researcher classifies. This skill may propose a classification and may not settle one.
Put it to them as a table of the decomposed steps with a proposed classification and a reason for each, then ask one single-select question: whether the classification is right as proposed, or whether a step needs moving. Do not ask step by step; a decomposition of nine steps becomes nine questions and the researcher stops reading. Do not offer "you decide" as an option, because that is the one answer this gate exists to refuse.
A proposed classification is not a settled one. The failure here is not refusing to propose; it is proposing well, and then continuing as though the proposal had been answered. Nothing downstream of this gate — no specification, no check, no code — proceeds until the researcher has said the sort is right or moved a step. If they have not answered, the last thing on the screen is the question.
Stage 3. Elicit the specification. One high-leverage question at a time, covering the outcome, what is in and out of scope, the constraints, prior decisions the artifact must respect, and what would count as correct.
Stage 3a. Categories and what they leave out. Fires only if the artifact defines, stores, or assigns categories. What the categories are, what falls outside them, whose activity becomes invisible by not being represented, and what the residual bucket is absorbing. Silent otherwise, because asking this of an artifact with no categories is noise.
Stage 3b. Ethical constraints. Fires only if the artifact reads data about people or sends any data off the machine. Consent scope, what may leave, what must be de-identified, and who holds authority over the material. These re-fire whenever the artifact's behaviour changes, because a later addition can reopen a question an earlier approval had settled.
Stage 4. Declare what would count as correct. Either correctness is decidable against something outside the artifact, or it depends on reading. The second kind may not claim to pass or fail. Read references/verification-modes.md before settling this, and where an artifact has steps of both kinds, declare it by its weakest step.
Then surface the behaviors the specification has left open — what an empty result means, whether a duplicate identifier is an error or a fact about the source, what an unparseable value does. These decide what the data means and they get settled by accident if nobody states them. Read references/unstated-commitments.md and work from it: state each as a commitment the specification currently makes, not as a question, because a reconstruction can be wrong and a question cannot. One table, one confirm-or-revise question. The answers enter the specification before it is ratified, which is why this is here and not later.
Stage 5. Check that the specification was read, then ratify. Gate. A specification that could have been written without looking at the researcher's actual materials has not been written for them. No code exists before this.
Show the outcome, the scope-out list, and the sort, on one screen. Then ask one single-select question with exactly these options: ratify and begin, or revise first and say what. Not a document review, and not a request for approval of something they cannot see.
Stage 6. Implement from the specification. Working from the ratified specification rather than from the conversation that produced it. For record-checkable steps, the acceptance checks are written first, from the specification, and each is seen to fail before implementation begins; the checks then freeze, and any change to one during implementation is a specification change that returns to the researcher. This is the builder's work, done unasked: tell the researcher in one sentence what the checks are and why they run red first, record the red run in the decision record, and ask nothing of them — a researcher who has never heard of test-first development is exactly who the discipline protects. When implementation cannot reach green within a few attempts, stop — the specification and the checks disagree, or the sort misclassified a step, and either finding is the researcher's to rule on.
Write the standing checks alongside the tests, in the same breath. The acceptance checks above verify the instrument once, while it is being built. The commitments settled at Stage 4 are things the researcher will want to hold months later, over data collected after the build is forgotten, so they persist as their own file:
from ai_anthro_toolkit.checks import generated
generated.to_document(answers, artifact="<their artifact>",
instrument="<what it is>", fields=fields)
Write it as instrument-checks.json beside the artifact, and say in one
sentence that ai-anthro-check <their file> re-runs it. Ask nothing.
Two things this file must be honest about, and both are automatic. An unanswered commitment produces no check, because silence is not consent to a default. And an answer that cannot be checked from the data alone is recorded as unenforceable with its reason, so a researcher who settled five commitments and received three checks is told which two and why rather than being left to assume the other two are covered.
Stage 7. Verify, and reclassify. Gate. Check the artifact against its conventions and its stated criteria — including that the suite has been made to fail on purpose at least once per guarded thing, because a green suite that was never red is evidence about nothing. Any finding that requires deciding what the artifact should do stops and asks. Later additions to a shipped instrument re-enter the same order: new behavior gets its failing check before its code. Where output diverges from what the researcher expected, ask what they had assumed and not stated, and record it only where the answer is something they did not already believe. Where a step behaved as judgment-dependent, correct the sort.
Stage 8. Close the record. Draft the statement of what the instrument makes visible and what it makes invisible, for the researcher to correct. Finish the decision record, including what the artifact returned rather than what was expected of it, because the gap between those two is the only part that constitutes learning.
A shipped instrument that fails re-enters the same discipline through a different door. Read references/repair-discipline.md before touching anything, and hold its order even under fieldwork pressure — especially under fieldwork pressure, because repair is where every shortcut looks justified:
Everything classified as rule-following. The fastest route through Stage 2 is to call every step mechanical, and it is the most expensive mistake available. Require a stated reason for each judgment-dependent step, and challenge a classification that finds none rather than accepting it.
The gate that becomes a form. Researchers learn which answers let a stage proceed. Expect it. An advisory pass that records what it skipped is more useful than a gate that is quietly routed around, because the record of what people skip says more about where friction belongs than a record of compliance does.
Reciting rather than reading. A specification can be fluent, well-formed, and never have touched the researcher's actual repository, data, or constraints. Named files that do not exist and commands the project cannot run are the visible symptoms. The subtler cases are not detectable, which is a limit of this practice rather than a solved problem.
Friction added to look rigorous. The claim is placement, not quantity. Three stops in the right places beat fifteen, and a tool made deliberately tedious is a worse tool without being a more careful one. Logistics should be smooth; installing, invoking, and re-running are not where judgment lives.
The green suite that was never red. A check that has never been seen to fail proves nothing, and a suite can stay green over a broken artifact when a check quietly guards nothing. Write checks before code and run them red once; before trusting a finished suite, break each guarded thing deliberately and watch its check fire. A model that writes the implementation and its checks in one pass has graded its own work, and the grade is not evidence.
Patching before reproducing. Under fieldwork pressure, the patch that fixes the failure in someone's head gets written first and verified against nothing. The reproduction check is not overhead on the repair; it is the only thing that makes "fixed" a claim rather than a hope, and it costs least at the start.
Repairing the code when the world changed. Scrapers and pipelines break most often because their source changed, not because their code was wrong. A repair session that patches the instrument to chase a redesigned archive has quietly rewritten the specification without the researcher — the changed world is a specification question, and it goes back to them as one.
references/elicitation-guide.md (opens in a new tab)references/profile-mcp.md (opens in a new tab)references/profile-skills-agents.md (opens in a new tab)references/repair-discipline.md (opens in a new tab)references/spec-pack-template.md (opens in a new tab)references/unstated-commitments.md (opens in a new tab)references/verification-modes.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
specification-driven, tool-building, decision-record, repair, scraper, mcp-server
npx claudepluginhub mattartzanthro/ai-anthropology-toolkit --plugin ai-anthropology29 skills in this plugin
/abstract-writingUse this skill when a user needs the abstract, title, or keywords that a finished manuscript is submitted with, for a journal, thesis, or edited volume. Triggers include: "write my abstract," "this is too long," "cut it to 150 words," "word limit," "does it match my article," "help me pick keywords," "title for my article," "structured headings," "lay summary," or "nobody will find this paper." Covers the five-move architecture (scene, problem, evidence, claim, stake), compressing a finished manuscript into 100-300 words while reporting what the cut costs, verifying that every promise made is one the manuscript keeps, whether the indexed text breaks the manuscript's own anonymization commitments, title construction, and keyword selection for discoverability. Do NOT use for material presented at a conference (use conference-materials), for drafting the manuscript or its sections (use research-writing), for deciding what the paper argues (use paper-planning), or for funder summaries (use grant-proposal).
/academic-reviewUse this skill whenever a user needs help writing, evaluating, or responding to peer reviews for anthropological research. Triggers include: any mention of "peer review," "review a manuscript," "write a review," "reviewer comments," "respond to reviewers," "rebuttal letter," "revision plan," "manuscript evaluation," "assess this paper," "reviewing for [journal name]," "R&R response," "how to review," "reviewer feedback," "revise and resubmit." Covers writing constructive peer reviews for anthropology journals, evaluating manuscripts from the reviewer's perspective, and responding to reviewer feedback (rebuttal letters, revision plans). Review types: invited review, desk review, blind review, open review. Do NOT use for grant review panels (use grant-proposal skill) or student work feedback (use teaching-materials skill). This skill handles peer review as a professional scholarly practice and revision as a strategic engagement with reviewer critique.
/applied-practiceUse this skill whenever a user needs client-facing or industry deliverables for applied anthropological work — consulting, UX research, business anthropology, or practicing roles. Triggers include: "statement of work," "SOW," "scope of work," "client engagement," "client work," "client report," "stakeholder readout," "executive summary," "insight synthesis," "research repository," "atomic insights," "workshop facilitation," "design sprint," "product team," "consulting engagement," "case study portfolio," "translate my research for business," "UX research deliverable." Covers engagement scoping, insight formulation, readouts and reports, workshop design, research repositories, and translating anthropological concepts for business audiences without losing them. Do NOT use for academic articles or chapters (use research-writing), op-eds and public writing (use public-engagement), academic job materials (use job-materials), or executing the analysis itself (use qualitative-analysis).
/career-statementsUse this skill whenever a user needs help writing professional philosophy statements for academic career advancement. Triggers include: any mention of "research statement," "teaching statement," "teaching philosophy," "diversity statement," "DEI statement," "tenure narrative," "promotion statement," "research vision," "future research plans," "statement of purpose," "personal statement for academic job," "how to write a research statement," "how to write a teaching statement," or "tenure portfolio." Covers research statements, teaching statements/philosophies, diversity statements, and tenure/promotion narratives for anthropologists at all career stages. Do NOT use for CVs, cover letters, or job talks (use job-materials skill), course syllabi or assignments (use teaching-materials skill), or grant proposals (use grant-proposal skill).
/chicago-manual-of-styleUse this skill whenever an anthropologist needs citations written, checked, or converted in Chicago style, or a Chicago editorial-style question settled. Triggers include: "Chicago style," "CMOS," "author-date," "notes and bibliography," "footnotes," "endnotes," "shortened notes," "ibid.," "References Cited," "AAA style," "format my reference list," "fix inconsistent citations," "convert my citations to Chicago," "how do I cite my field notes," "cite an interview I conducted," "cite an archival collection," or a press or journal that requires Chicago. Covers both Chicago systems at the 18th edition, the edition differences that make old examples wrong, what AAA and other anthropology venues actually ask for, ethnographic sources Chicago has no template for, and the toolkit's citation formatter. Do NOT use for finding or screening sources (use literature-review), checking citations in a typeset proof (use proof-review), or masking self-citations for blind review (use review-anonymization).
/conference-materialsUse this skill whenever a user needs help preparing materials for an anthropology conference presentation. Triggers include: any mention of "conference abstract," "AAA abstract," "organized session," "roundtable proposal," "poster session," "workshop proposal," "slide deck," "conference presentation," "conference talk," "academic poster," "speaker notes," "20-minute talk," "15-minute talk," "CASCA abstract," "AES presentation," "SfAA abstract," "help with my AAA panel," "poster design," or "oral delivery." Covers abstract writing for individual papers, organized sessions, roundtables, poster sessions, and workshop proposals; slide deck design for 15-20 minute conference talks; academic poster design including content structure and visual hierarchy; and speaker notes with oral delivery preparation. Do NOT use for job talks (use job-materials skill), public talks for non-academic audiences (use public-engagement skill), or full paper writing (use research-writing skill).
Other plugins' skills for the same job