agentleFS
yha9806yha9806/academic-writing-toolkit/.claude/skills/integrate/SKILL.md

integrate

Skill42 starsChanged 2 months agoMITView on GitHub

Map reading notes to thesis chapters and integrate key arguments into the manuscript. Use after completing a reading session to weave new material into the thesis.

5 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

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After completing a reading session, this skill weaves key arguments, quotes, and concepts from reading notes into the thesis manuscript.

    line 11
  2. Distinctive:

    Read the target chapter file.

    line 42
  3. Distinctive:

    Use Edit to insert, expand, or add citations at the specified location.

    line 43
  4. Distinctive:

    expand existing: Add sentences to an existing paragraph.

    line 64
  5. Distinctive:

    add footnote: Add a footnote with extended discussion or a qualifying remark.

    line 66
  6. Distinctive:

    Preserve existing chapter structure: Do not reorder sections, delete content, or rewrite paragraphs beyond the insertion point.

    line 71
  7. Distinctive:

    Attribution: Every integrated quote must include a page reference.

    line 73

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

/integrate — Thesis Integration Skill

Purpose

After completing a reading session, this skill weaves key arguments, quotes, and concepts from reading notes into the thesis manuscript. It ensures new material is placed in the right chapter and section, with proper attribution and minimal disruption to existing structure.

Trigger Words

This skill activates on: integrate, weave in, add to thesis, /integrate.

Workflow

  1. Scan the specified notes file(s) for the ## Thesis Connections table and ## Key Arguments section. If the user does not specify which notes file, ask. If the user says "all pending", scan all notes files with Status: completed (not yet integrated). First run the contract lint /note names in its step 7 (notes-lint.mjs, beside that skill): report any file that fails it and exclude it from the plan explicitly — never silently skip a non-conforming file. A source whose notes carry Evidence status: abstract_only or metadata_only must not be woven in as supporting evidence; flag it instead.
  2. Read target chapter files in chapters/ to identify insertion points. Use Grep to find relevant sections, existing citations of the same author, and thematic paragraphs where the new material fits.
  3. Present an integration plan as a table. Do not execute any changes yet.

    ## Integration Plan: {Author} -- {Title}
    
    | # | Source Concept | Chapter | Section | Insertion Type | Preview |
    |---|---------------|---------|---------|----------------|---------|
    | 1 | {concept} | Ch{N} | {section ref} | new paragraph / expand existing / add citation / add footnote | {first 10 words of proposed text} |
    
    Estimated word count delta: +{N} words across {N} chapters.
    Proceed? (yes / edit plan / cancel)
  4. Wait for user approval. The user may:
    • Say "yes" or "proceed" to execute the plan as shown.
    • Say "edit plan" and specify changes (remove a row, change a section, etc.).
    • Say "cancel" to abort.
  5. Execute the integration. For each row in the approved plan:
    • Read the target chapter file.
    • Use Edit to insert, expand, or add citations at the specified location.
    • Preserve existing paragraph structure. Do not rewrite surrounding text.
  6. Update the notes file. Change Status from completed to integrated using Edit. Update the Last updated timestamp.
  7. Report results.

    ## Integration Complete
    
    | Chapter | Words before | Words after | Delta |
    |---------|-------------|------------|-------|
    | {ch} | {N} | {N} | +{N} |
    
    Total: +{N} words across {N} chapters.
    Notes file status updated to: integrated.

Insertion Types

  • new paragraph: Insert a new paragraph at the specified location. Include a topic sentence, the integrated content, and a transition.
  • expand existing: Add sentences to an existing paragraph. Maintain the paragraph's flow and argument direction.
  • add citation: Insert an inline citation (Author, Year) or a parenthetical reference to support an existing claim.
  • add footnote: Add a footnote with extended discussion or a qualifying remark.

Constraints

  1. Never integrate without showing the plan first. The user must approve before any chapter file is modified.
  2. Preserve existing chapter structure. Do not reorder sections, delete content, or rewrite paragraphs beyond the insertion point.
  3. Track and report word count changes for every chapter affected.
  4. Attribution: Every integrated quote must include a page reference. Every integrated argument must cite the source.
  5. No emoji in output or inserted text.
  6. British English for all inserted text (e.g., "colour" not "color", "analyse" not "analyze").
  7. One notes file at a time unless the user explicitly requests batch integration.

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.