agentleFS
hsigstadhsigstad/research-kit/skills/new-pipeline/SKILL.md

new-pipeline

Skill0 starsChanged 4 months agoMITView on GitHub

Scaffold a new data pipeline under pipelines/ with the pipeline directory structure and required docs. Use when the user wants to create a new data processing pipeline.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are 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.

  • 5

    Very specific

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

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

    Create a new pipeline repository under pipelines/.

    line 9
  2. Very specific:

    Follow the pipeline structure from $ROOT/research-kit/rules/project_docs_contract.md:

    line 26
  3. Distinctive:

    Document both input and output datasets using the data.md format.

    line 93
  4. Very specific:

    Create thinking.md, decisions.md, archive.md with their headers and empty template sections.

    line 107
  5. Very specific:

    Check $ROOT/research/meta/data_linkages.md — note which projects will consume this pipeline's output.

    line 136
  6. Very specific:

    Check $ROOT/data_catalog/ for existing metadata about the input data sources before populating data.md.

    line 143

≈ “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

Scaffold a new data pipeline

Create a new pipeline repository under pipelines/.

Finding the workspace root

The workspace root contains CLAUDE.md alongside projects/, pipelines/, $ROOT/data_catalog/, research/. If the current directory is inside a project or pipeline, search upward to find the root. Use $ROOT for all paths below.

Step 1: Gather information

Ask the user:

  1. Pipeline slug — short directory name (e.g., brazil, justica, politica)
  2. Purpose — what data does this pipeline clean/process?
  3. Input data — raw data sources (check $ROOT/data_catalog/ for existing ones)
  4. Output — what cleaned datasets does it produce?

Step 2: Create the directory structure

Follow the pipeline structure from $ROOT/research-kit/rules/project_docs_contract.md:

$ROOT/pipelines/<slug>/
  README.md
  CLAUDE.md
  .claude/
    settings.local.json
  docs/
    summary.md
    thinking.md
    todo.md
    data.md
    decisions.md
    archive.md
  source/
  build/
    .gitkeep

Note: pipelines do NOT have paper/, talk/, or the full set of project docs (no meetings.md, feedback.md, literature.md, institutions.md, methods.md, results.md).

Step 3: Populate files

CLAUDE.md

# <Pipeline Name> Pipeline

## Purpose
<from user input>

## Input
<data sources>

## Output
<cleaned datasets produced>

## Shared code
- Uses `diarios` module for court/legal data utilities — check `$ROOT/research-kit/meta/diarios_api.md` before writing new helpers.

## Conventions
- Follow workspace rules in `$ROOT/research/rules/workspace.md`
- Documentation follows `$ROOT/research-kit/rules/project_docs_contract.md` (pipeline section)
- Scripts follow the Inline Audit Trail (IAT) convention in `$ROOT/research-kit/rules/inline_audit_trail.md`

.claude/settings.local.json

{
  "permissions": {
    "allow": [
      "Bash(python3:*)",
      "Bash(git add:*)",
      "Bash(git commit:*)"
    ]
  }
}

docs/summary.md

Populate with the pipeline's purpose, input sources, and output description.

docs/data.md

Document both input and output datasets using the data.md format. For pipelines, this file describes both sides — what goes in and what comes out.

docs/todo.md

# TODOs

## Setup
- [ ] Initial pipeline structure
  - created: <today's date>

Other docs/ files

Create thinking.md, decisions.md, archive.md with their headers and empty template sections.

README.md

# <Pipeline Name>

<One-line description of what this pipeline produces>

See `docs/summary.md` for details.

Step 4: Initialize git

cd $ROOT/pipelines/<slug> && git init

Create a .gitignore:

build/
*.pyc
__pycache__/
.ipynb_checkpoints/

Step 5: Register the pipeline

  1. Suggest updating the pipeline listing in $ROOT/research/rules/workspace.md.
  2. Check $ROOT/research/meta/data_linkages.md — note which projects will consume this pipeline's output.

Gotchas

  • Pipelines are NOT projects. Do not create paper/, talk/, meetings.md, feedback.md, literature.md, institutions.md, methods.md, or results.md.
  • Pipeline docs/data.md documents both inputs AND outputs (unlike project data.md which only documents usage).
  • Build outputs are typically gitignored — they should be regenerable from source.
  • Check $ROOT/data_catalog/ for existing metadata about the input data sources before populating data.md.

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.