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:

Capability-Based Routing

Shared skills route by the task’s required capability and output contract, not by the host or Agent brand:

Route Use it when
Current-session native capability The capability is actually exposed in this session and can complete the one-off reading, reasoning, writing, browsing, or visual task
ScholarAIO core CLI The task needs library access, provenance, persistent notes, reproducible IR, deterministic Office files, or another tested project contract
Optional sidecar or external extension The user explicitly requests it, or the native/core route cannot meet a specialized rendering or benchmark contract

Never infer tool availability from an Agent name. Check the capabilities that are actually available, select the smallest route that satisfies the output, and state any verification boundary. This keeps the canonical skills portable while still allowing host-specific setup commands in dedicated integration documentation.

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: