This is the repository entry document for coding agents. It is intentionally short:
- keep durable project facts and hard constraints here
- move multi-step procedures into skills
- move deep reference material into the indexed
docs/knowledge base
ScholarAIO is an All-in-One academic harness for agents. Researchers work through a coding agent to search literature, inspect evidence, organize persistent project context, produce reviewable research outputs, and use bounded scientific-tool adapters without ScholarAIO replacing the agent's native reasoning or orchestration.
The Python package is scholaraio. Real work should usually happen through the ScholarAIO CLI and project skills, not by bypassing runtime helpers with ad hoc file edits.
- Prefer a matching project skill in
.claude/skills/when the user request clearly maps to one. - Use the
scholaraioCLI to do real work instead of only describing what should be done. - Load information progressively. Prefer metadata or abstracts first, then conclusions or full text only when needed.
- Treat paper conclusions as claims, not facts. Compare evidence, point out limitations, and distinguish supported results from author interpretation.
- Keep user-facing drafts, reports, exports, and research outputs under
workspace/, not the repository root orscholaraio/. - Do not casually rewrite or delete runtime data. When touching runtime layout, use
Config, migration helpers, and tested accessors. - When changing runtime layout, compatibility behavior, agent entry docs, or skill discovery, update tests and aligned docs in the same change.
- After code or doc changes, run the relevant checks and at least one real smoke path when feasible.
Read these in roughly this order:
README.mdfor the product overview and top-level structure.STRATEGY.mdbefore changing product scope or adding an external integration.docs/DESIGN.mdfor the repository knowledge map.docs/getting-started/agent-setup.mdfor repo-open vs plugin or cross-project setup.docs/guide/cli-reference.mdfor the current user-facing CLI surface.docs/guide/agent-reference.mdfor deeper agent, runtime, and skill organization details.docs/internal/PLANS.mdanddocs/internal/exec-plans/completed/scholaraio-upgrade-plan.mdbefore changing runtime layout, migration, or compatibility behavior.
The canonical project skill source is .claude/skills/. Cross-agent discovery paths are wrappers around that same source:
.agents/skills/.qwen/skills/skills/
Representative skills to check first:
- Core research:
search,show,ingest,ingest-link,workspace,audit,translate - Writing:
academic-writing,nature-workflow,literature-review,paper-guided-reading,paper-writing,citation-check,writing-polish,review-response,research-gap,poster,technical-report - Outputs and tooling:
draw,document,publish,scientific-runtime,scientific-tool-onboarding
If a workflow has grown into a reusable playbook, move it into a skill instead of expanding this file.
scholaraio/core/: config, logging, and shared runtime foundationsscholaraio/providers/: external service clients and parsing backendsscholaraio/stores/: persistent library roots and storage helpersscholaraio/projects/: user project and workspace behaviorscholaraio/services/: domain logic and orchestrationscholaraio/interfaces/cli/: CLI parser, startup, and command handlers
The breaking cleanup generation removed legacy root-level public facades such as
scholaraio.index, scholaraio.workspace, and scholaraio.translate. New code
should import canonical namespaces directly.
High-signal canonical implementation pointers:
scholaraio/stores/explore.pyscholaraio/projects/workspace.pyscholaraio/services/insights.pyscholaraio/services/translate.pyscholaraio/interfaces/cli/scholaraio/interfaces/cli/compat.pyfor internal CLI wiringscholaraio/cli.pyas the published entrypoint only
- Runtime is fresh-layout-only under
data/libraries/,data/spool/, anddata/state/. - Legacy roots such as
data/papers/,data/explore/,data/proceedings/, anddata/inbox*are no longer normal runtime inputs. Usescholaraio migrate upgrade --migration-id <migration-id> --confirmfor the one-command supported migration, orscholaraio migrate ...to inventory, verify, and run individual stores. workspace/<name>/stays a free-form user project tree.- Workspace paper references live in
workspace/<name>/refs/papers.json. workspace.yamlis additive metadata only; it does not replacerefs/papers.json.- System-owned workspace outputs live under
workspace/_system/, especially:workspace/_system/translation-bundles/workspace/_system/figures/workspace/_system/output/
- Runtime-layout migration control lives under
.scholaraio-control/. The standardized one-command upgrade gate isscholaraio migrate upgrade --migration-id <migration-id> --confirm;finalizeremains the post-store cleanup/final verification step.
scholaraio --help- For repo-local validation, prefer
python -m scholaraio.cli ...so you are exercising the current checkout instead of an older installed console script. scholaraio setup checkscholaraio search --helpscholaraio show --helpscholaraio gui --helpscholaraio pipeline --helpscholaraio ws --helpscholaraio migrate --helpscholaraio migrate upgrade --helpscholaraio migrate finalize --help
Common verification commands in this repo:
python -m pytest -q -p no:cacheproviderpython -m ruff check scholaraio testspython -m ruff format --check scholaraio testspython -m mkdocs build --strict
- Claude Code:
CLAUDE.md+.claude/skills/ - Codex / OpenClaw:
AGENTS.md+.agents/skills/ - Qwen:
.qwen/QWEN.md+.qwen/skills/ - Cursor:
.cursor/rules/scholaraio.mdc, thenAGENTS.md - Cline:
.clinerules, thenAGENTS.md - Windsurf:
.windsurfrules, thenAGENTS.md - GitHub Copilot:
.github/copilot-instructions.md, thenAGENTS.md
Keep these wrappers lightweight. Do not turn every wrapper into a second full manual.
Optional webtools MCP servers are listed in .mcp.json for hosts that support
project MCP JSON. Codex uses its own MCP registry; see
docs/guide/webtools-integration.md for codex mcp add ... commands.
Use the smallest doc that answers the question:
- Repository knowledge map:
docs/DESIGN.md - Plan map and execution history:
docs/internal/PLANS.md,docs/internal/exec-plans/ - Knowledge quality and cleanup:
docs/internal/QUALITY_SCORE.md - Agent and skill organization:
docs/guide/agent-reference.md - Setup and installation:
docs/getting-started/agent-setup.md,docs/getting-started/installation.md,docs/getting-started/configuration.md - CLI behavior:
docs/guide/cli-reference.md - Writing workflows:
docs/guide/writing.md - Runtime layout and migration:
docs/internal/exec-plans/completed/scholaraio-upgrade-plan.md,docs/design-docs/directory-structure-spec.md,docs/design-docs/directory-migration-sequence.md,docs/design-docs/migration-mechanism-spec.md
When in doubt, keep this file short, keep skills procedural, and keep deep detail in dedicated reference docs.