Academic Pipeline — Project State & Lifecycle Orchestrator
This skill manages the physical and logical lifecycle of an academic project. It ensures that files are in the right place, metadata is accurate, and internal references are synchronized across the Obsidian vault.
Project States
- Drafts: Initial research and first-pass writing.
- Frontmatter:
status: active, phase: draft
- Directory:
Projects/[Name]/01_Drafts/
- Revisions: Post-review or internal editing phase.
- Frontmatter:
status: active, phase: revision
- Directory:
Projects/[Name]/02_Revisions/
- Publications: Finalized, verified, and formatted versions.
- Frontmatter:
status: archived, phase: final
- Directory:
Projects/[Name]/03_Publications/
Core Operations
1. State Tracking & File Migration
When a project moves from one stage to another, the pipeline MUST:
2. YAML Frontmatter Synchronization
Every time a file is moved or modified, the pipeline verifies and updates the frontmatter:
- Verification: Ensure
title, date, status, and phase exist.
- Update: Change
status: active to status: archived once a paper reaches the Publications state.
- Tool: Use
replace or write_file to update the top block of the Markdown file.
3. Wiki-Link [[ ]] Management
The pipeline ensures that the index.md (Project Hub) and the individual sections are linked:
- Hub Sync: The
index.md must contain a dynamic list of [[Links]] to all files in the project folders.
- Reference Sync: If a section (e.g.,
Methodology.md) is renamed, the pipeline must update all [[Methodology]] links in other files to the new name using replace with allow_multiple: true.
Workflow (Transition Gates)
Gate A: Research -> Draft (WRITE)
- Action: Create project directory structure.
- Metadata: Set
status: active, phase: draft.
Gate B: Draft -> Review (REVIEW)
- Action: Move files to
02_Revisions/.
- Metadata: Set
phase: revision.
- Link: Update
index.md to point to the revision folder.
Gate C: Review -> Final (PUBLISH)
- Action: Move final validated files to
03_Publications/.
- Metadata: Set
status: archived, phase: final.
- Action: Generate the "Scientific Integrity Report" (via
academic-paper-reviewer) and link it in the index.md.
Technical Instructions for the Agent
- Use Shell for Structure: Always use
run_shell_command to maintain the directory hierarchy.
- Atomic Updates: When updating a file's state, update both its physical location and its internal YAML metadata in a single turn if possible.
- Link Integrity: Before finishing a transition, grep for the old filename to ensure no broken
[[ ]] links remain in the project.
- Reporting: Always provide a "Pipeline Status Update" after a transition:
### Pipeline Update: [Project Name]
- **Current State**: [[Revisions]]
- **Files Moved**: 3
- **Links Updated**: 12
- **Frontmatter**: Synchronized (status: active)
Trigger Conditions
- English: academic pipeline, move to revision, finalize project, archive paper, sync links, update project state.
- 繁體中文: 啟動流程, 進入修訂階段, 存檔論文, 同步連結, 更新專案狀態.
Anti-Patterns (Prohibited)
- Dangling Files: Leaving old versions in the
Drafts folder when the project is in Revisions.
- Manual Link Updates: Forgetting to update
[[ ]] links when a file is renamed.
- Inconsistent Metadata: Having a file in the
Publications folder with status: active.
- Flat Structures: Putting all files in the root without the
01_Drafts, 02_Revisions, 03_Publications hierarchy.
1---2name: academic-pipeline3description: Orchestrator for the full academic research pipeline with automated project state tracking. Manages the transition between RESEARCH, WRITE, REVIEW, and PUBLISH states. Features: shell-based file management, automatic YAML frontmatter synchronization (status: active/archived), and wiki-link [[ ]] reference management.4---56# Academic Pipeline — Project State & Lifecycle Orchestrator78This skill manages the physical and logical lifecycle of an academic project. It ensures that files are in the right place, metadata is accurate, and internal references are synchronized across the Obsidian vault.910## Project States11121. **Drafts**: Initial research and first-pass writing.13 * *Frontmatter*: `status: active`, `phase: draft`14 * *Directory*: `Projects/[Name]/01_Drafts/`152. **Revisions**: Post-review or internal editing phase.16 * *Frontmatter*: `status: active`, `phase: revision`17 * *Directory*: `Projects/[Name]/02_Revisions/`183. **Publications**: Finalized, verified, and formatted versions.19 * *Frontmatter*: `status: archived`, `phase: final`20 * *Directory*: `Projects/[Name]/03_Publications/`2122---2324## Core Operations2526### 1. State Tracking & File Migration27When a project moves from one stage to another, the pipeline MUST:28* Use `run_shell_command` to move files between directories.29* Rename files to include versioning (e.g., `Paper_v1_Draft.md` -> `Paper_v2_Revision.md`).30* Example Shell Logic:31 ```bash32 mkdir -p "Projects/MyPaper/02_Revisions"33 mv "Projects/MyPaper/01_Drafts/Draft.md" "Projects/MyPaper/02_Revisions/Revision_v1.md"34 ```3536### 2. YAML Frontmatter Synchronization37Every time a file is moved or modified, the pipeline verifies and updates the frontmatter:38* **Verification**: Ensure `title`, `date`, `status`, and `phase` exist.39* **Update**: Change `status: active` to `status: archived` once a paper reaches the `Publications` state.40* **Tool**: Use `replace` or `write_file` to update the top block of the Markdown file.4142### 3. Wiki-Link [[ ]] Management43The pipeline ensures that the `index.md` (Project Hub) and the individual sections are linked:44* **Hub Sync**: The `index.md` must contain a dynamic list of `[[Links]]` to all files in the project folders.45* **Reference Sync**: If a section (e.g., `Methodology.md`) is renamed, the pipeline must update all `[[Methodology]]` links in other files to the new name using `replace` with `allow_multiple: true`.4647---4849## Workflow (Transition Gates)5051### Gate A: Research -> Draft (WRITE)52* **Action**: Create project directory structure.53* **Metadata**: Set `status: active`, `phase: draft`.5455### Gate B: Draft -> Review (REVIEW)56* **Action**: Move files to `02_Revisions/`.57* **Metadata**: Set `phase: revision`.58* **Link**: Update `index.md` to point to the revision folder.5960### Gate C: Review -> Final (PUBLISH)61* **Action**: Move final validated files to `03_Publications/`.62* **Metadata**: Set `status: archived`, `phase: final`.63* **Action**: Generate the "Scientific Integrity Report" (via `academic-paper-reviewer`) and link it in the `index.md`.6465---6667## Technical Instructions for the Agent68691. **Use Shell for Structure**: Always use `run_shell_command` to maintain the directory hierarchy.702. **Atomic Updates**: When updating a file's state, update both its physical location and its internal YAML metadata in a single turn if possible.713. **Link Integrity**: Before finishing a transition, grep for the old filename to ensure no broken `[[ ]]` links remain in the project.724. **Reporting**: Always provide a "Pipeline Status Update" after a transition:73 ```markdown74 ### Pipeline Update: [Project Name]75 - **Current State**: [[Revisions]]76 - **Files Moved**: 377 - **Links Updated**: 1278 - **Frontmatter**: Synchronized (status: active)79 ```8081---8283## Trigger Conditions8485* **English**: academic pipeline, move to revision, finalize project, archive paper, sync links, update project state.86* **繁體中文**: 啟動流程, 進入修訂階段, 存檔論文, 同步連結, 更新專案狀態.8788---8990## Anti-Patterns (Prohibited)91921. **Dangling Files**: Leaving old versions in the `Drafts` folder when the project is in `Revisions`.932. **Manual Link Updates**: Forgetting to update `[[ ]]` links when a file is renamed.943. **Inconsistent Metadata**: Having a file in the `Publications` folder with `status: active`.954. **Flat Structures**: Putting all files in the root without the `01_Drafts`, `02_Revisions`, `03_Publications` hierarchy.