agentleFS
XORwellXORwell/archeflow/skills/domains/SKILL.md

domains

Skill0 starsChanged 52 days agoMITView on GitHub

ArcheFlow domain adapters (code, writing, research): terminology, metrics, review focus and context for non-code runs.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create .archeflow/domains/<name>.yaml with name, concepts, metrics (minimum required)

    line 88
  2. Distinctive:

    Reports: use domain-translated terms (e.g., "word count delta" instead of "files changed")

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Domain Adapter System

Adapts the PDCA pipeline and archetype system to specific domains (writing, code, research) so events, metrics, reviews, and context use domain-appropriate terminology.

Domain Registry

Domain definitions live in .archeflow/domains/<name>.yaml. Each maps generic concepts to domain-specific equivalents.

Concept Mapping

Generic ConceptCodeWritingResearch
implementationcode changesdraft/prosedraft/analysis
testsautomated testsconsistency checkscitation verification
files_changedfiles changedword count deltasection count
test_coveragetest coverage %voice drift scoresource coverage
code_reviewcode reviewprose reviewpeer review
buildbuild/compilecompile/exportcompile (LaTeX/PDF)
deploydeploypublishsubmit/publish
bugbugcontinuity errorunsupported claim
featurefeaturescene/chaptersection

Metrics by Domain

CodeWritingResearch
files_changedword_countword_count
lines_added/removedvoice_drift_scorecitation_count
tests_addeddialect_densitysource_diversity
tests_passingscene_countclaim_count
coverage_deltadialogue_ratiounsupported_claims

Review Focus by Domain

ReviewerCodeWritingResearch
Guardiansecurity, breaking changes, deps, error handlingplot coherence, character consistency, timeline, continuityfactual accuracy, citation validity, logic, methodology
Sagecode quality, coverage, docs, patternsvoice consistency, prose quality, dialect authenticityargument structure, clarity, tone, completeness
Skepticdesign assumptions, scalability, edge casespremise strength, motivation, ending satisfaction(default)
Trickstermalformed input, races, error paths, dep failuresreader confusion, pacing dead spots, disbelief breaks(default)

Model Overrides

Domains can override default model assignments:

DomainOverrideRationale
Writingmaker: sonnetProse quality is the product
Writingcustom reviewer: sonnetVoice evaluation needs taste
Researchmaker: sonnetAnalysis quality matters
Code(none)Defaults are calibrated for code

Context Injection by Domain

Domains declare which extra files agents should read per phase. Context injection is additive (on top of standard ArcheFlow context).

A domain file in .archeflow/domains/ can come with the repository, so its context entries follow the lens rule: only plain relative paths inside the project (letters, digits, ., _, -, /; no leading / or -, no .., no ~, $, backticks, globs or spaces). Skip any other entry with a warning, and read files with the file-reading tool, never through a shell command.

PhaseCodeWriting
alwaysREADME.md, config.yamlvoice profile, persona, characters
planrelevant source files, existing testsseries config, previous stories, brief
doCreator's proposal, test fixturesscene outline, voice profile
checkgit diff, risk sectionvoice profile (Sage), outline (Guardian), characters

Domain Detection

Auto-detects at run.start. Result stored in event stream.

PrioritySignalDomain
1CLI --domain <name>as specified
2Team preset domain: fieldas specified
3Writing-domain config existswriting
4*.bib or references/ existsresearch
5package.json, Cargo.toml, pyproject.toml, go.mod, Makefilecode
6No markerscode (default)

Adding a New Domain

  1. Create .archeflow/domains/<name>.yaml with name, concepts, metrics (minimum required)
  2. Optionally add review_focus, context, model_overrides
  3. Missing sections fall back to code domain defaults
  4. Test with --domain <name> --dry-run

How Domains Affect Orchestration

  • Reports use domain-translated terms (e.g., "word count delta" instead of "files changed")
  • Events include domain-relevant metrics in agent.complete and run.complete payloads
  • Reviewers receive domain-specific focus checklists (archetype personality stays the same)
  • Context injection adds domain-declared files to each agent's prompt
  • Model overrides change which model an archetype uses (interacts with cost-tracking)
  • One domain per run. Multi-domain projects use separate runs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.