scholaraio

Agent Reference

This document is the deeper reference for agents and maintainers. The root entry docs such as AGENTS.md, CLAUDE.md, and .qwen/QWEN.md are intentionally kept lighter and should stay focused on durable project facts, hard constraints, and navigation. For the full repository knowledge map, start at docs/DESIGN.md.

Instruction Layering

Use the instruction stack in this order:

  1. Root wrapper for your host tool
    • CLAUDE.md
    • AGENTS.md
    • .qwen/QWEN.md
    • .cursor/rules/scholaraio.mdc
    • .clinerules
    • .windsurfrules
    • .github/copilot-instructions.md
  2. Matching project skill under .claude/skills/<name>/SKILL.md
  3. Focused reference docs such as CLI, setup, writing, or migration specs
  4. Source code and tests

Practical rule:

Repository Knowledge System

ScholarAIO treats repository-local Markdown as the system of record for agent context. AGENTS.md is the map injected early in agent sessions; it should not become the encyclopedia.

Key indexes:

Internal plans, validation records, and audits are intentionally excluded from the published documentation site.

How Skills Are Organized

The canonical project skill source is:

Cross-agent discovery wrappers expose the same skill set through:

For reuse from another project, prefer the automated registration command:

scholaraio setup agent
scholaraio setup agent --apply
scholaraio setup agent check

It previews and applies shell runtime wiring, Codex/OpenClaw global skill discovery, project-local wrappers for supported hosts, and Claude Code plugin instructions where automation is not possible.

Project-local wrappers are local machine integration blocks. They may contain absolute paths to the active ScholarAIO checkout and config, so review them before committing target-project files.

Project guidance for maintaining skills:

Representative skills:

Repo And Module Map

ScholarAIO’s canonical implementation namespaces are:

High-signal mental model:

The breaking cleanup generation removed legacy public facades such as scholaraio.index, scholaraio.workspace, scholaraio.translate, and scholaraio.ingest.pipeline.

Current import rules:

Current Runtime Layout

Fresh-layout runtime:

Breaking cleanup behavior:

Workspace rules:

Migration rules:

Agent Operating Model

ScholarAIO is meant to be used through an agent, not only through direct shell scripting.

Agents should:

Notes And Cross-Session Analysis

When analysis should persist across sessions, use paper-level notes.md.

Conventions:

Useful mental model:

Use the smallest doc that answers the question:

The maintenance rule for this repo is simple: