Agent Skillssynthetic-sciences/openscience › initialize-atlas-graph

initialize-atlas-graph

GitHub

初始化或关联项目的Atlas研究图谱,用于追踪假设、实验及决策。在画布未链接或用户请求时执行,通过CLI创建项目并处理认证与网络异常。

backend/cli/skills/research/initialize-atlas-graph/SKILL.md synthetic-sciences/openscience

Trigger Scenarios

画布显示无图谱或未链接 用户要求初始化或设置Atlas 准备开始需记录的研究工作

Install

npx skills add synthetic-sciences/openscience --skill initialize-atlas-graph -g -y
More Options

Non-standard path

npx skills add https://github.com/synthetic-sciences/openscience/tree/main/backend/cli/skills/research/initialize-atlas-graph -g -y

Use without installing

npx skills use synthetic-sciences/openscience@initialize-atlas-graph

指定 Agent (Claude Code)

npx skills add synthetic-sciences/openscience --skill initialize-atlas-graph -a claude-code -g -y

安装 repo 全部 skill

npx skills add synthetic-sciences/openscience --all -g -y

预览 repo 内 skill

npx skills add synthetic-sciences/openscience --list

SKILL.md

Frontmatter
{
    "name": "initialize-atlas-graph",
    "category": "research",
    "description": "Create or link this repo's Atlas research graph so hypotheses, experiments, runs, and decisions are tracked. Use when the canvas says 'no graph for this project', when the user asks to initialize\/set up Atlas, or before starting research that should be recorded.",
    "allowed-tools": [
        "Bash"
    ]
}

Initialize the Atlas Research Graph

Overview

An Atlas project is this repo's research graph — the root that hypotheses, experiments, training/eval runs, evidence, and decisions hang off. Creating (or linking to an existing) graph is a one-command, dedupe-safe operation. It is keyed off the git repo, not the opened folder, so a subfolder or a fresh clone at a different path resolves to the same graph.

Run this skill when:

  • The canvas shows "no graph for this project" / the folder isn't linked yet.
  • The user asks to "initialize", "set up Atlas", or "start tracking" research.
  • You are about to begin research work that should be recorded.

Steps

  1. (Optional) Confirm the CLI is authenticated.

    atlas doctor --format=json
    

    If it reports unavailable/unauthenticated, tell the user to run openscience login — the graph cannot be created without a session.

  2. Create or link the graph (idempotent — safe to re-run; returns the existing graph if one already exists):

    openscience project init --format=json
    

    On success this prints {"project_id":"<id>"} and writes .openscience/project.json at the repo root so the canvas links to it immediately.

    On failure it prints project_id: null plus an error kind (and host, status, message when known). Relay the fix that matches the kind — do NOT guess or tell the user to re-login for a network problem:

    • "unauthenticated" — no session, or the backend rejected the saved key. Tell the user to run openscience login.
    • "unreachable" — the Atlas backend at the printed host could not be reached (network/DNS error or 5xx). The user IS logged in; suggest checking connectivity and any OPENSCIENCE_API_BASE/SYNSC_API_BASE override, then retrying — not re-authenticating.
    • "plan" — authenticated, but the account has no active Atlas plan. Point the user at https://app.syntheticsciences.ai/billing; include the backend message if present.
    • "backend" — anything else; show the backend's status/message verbatim.
  3. Confirm to the user. Report the project_id and tell them the graph now shows in the canvas (Atlas pane). From here, milestones are recorded against this graph as the work progresses.

Notes

  • Idempotent & dedupe-safe: re-running never creates a duplicate; it returns the same graph for the same repo.
  • Repo-rooted: run it from anywhere inside the repo — it resolves to the git top-level.
  • Do not hand-edit .openscience/project.json; let openscience project init manage it (use openscience project merge to pick a canonical root if duplicates exist).

Version History

  • dc00e07 Current 2026-07-30 22:43
  • e9844a4 2026-07-11 17:33

Same Skill Collection

.openscience/skill/bun-file-io/SKILL.md
backend/cli/skills/biology/anndata/SKILL.md
backend/cli/skills/biology/benchling-integration/SKILL.md
backend/cli/skills/biology/bioimage-analysis/SKILL.md
backend/cli/skills/biology/bioservices/SKILL.md
backend/cli/skills/biology/cancer-genomics-analysis/SKILL.md
backend/cli/skills/biology/clinical-imaging/SKILL.md
backend/cli/skills/biology/clinical-reports/SKILL.md
backend/cli/skills/biology/cobrapy/SKILL.md
backend/cli/skills/biology/curated-bio-datasets/SKILL.md
backend/cli/skills/biology/deeptools/SKILL.md
backend/cli/skills/biology/dnanexus-integration/SKILL.md
backend/cli/skills/biology/etetoolkit/SKILL.md
backend/cli/skills/biology/flow-cytometry-analysis/SKILL.md
backend/cli/skills/biology/flowio/SKILL.md
backend/cli/skills/biology/gget/SKILL.md
backend/cli/skills/biology/glycobiology/SKILL.md
backend/cli/skills/biology/histolab/SKILL.md
backend/cli/skills/biology/immunology-assays/SKILL.md
backend/cli/skills/biology/latchbio-integration/SKILL.md
backend/cli/skills/biology/microbial-dynamics/SKILL.md
backend/cli/skills/biology/molecular-cloning/SKILL.md
backend/cli/skills/biology/neurokit2/SKILL.md
backend/cli/skills/biology/neuropixels-analysis/SKILL.md
backend/cli/skills/biology/omero-integration/SKILL.md
backend/cli/skills/biology/opentrons-integration/SKILL.md
backend/cli/skills/biology/pathml/SKILL.md
backend/cli/skills/biology/pharmacology-wetlab/SKILL.md
backend/cli/skills/biology/protocolsio-integration/SKILL.md
backend/cli/skills/biology/pydeseq2/SKILL.md
backend/cli/skills/biology/pyhealth/SKILL.md
backend/cli/skills/biology/pylabrobot/SKILL.md
backend/cli/skills/biology/pysam/SKILL.md
backend/cli/skills/biology/scanpy/SKILL.md
backend/cli/skills/biology/scikit-bio/SKILL.md
backend/cli/skills/biology/scikit-survival/SKILL.md
backend/cli/skills/biology/scvi-tools/SKILL.md
backend/cli/skills/biology/synthetic-biology/SKILL.md
backend/cli/skills/biology/treatment-plans/SKILL.md
backend/cli/skills/chemistry/admet-prediction/SKILL.md
backend/cli/skills/chemistry/admet-reasoning/SKILL.md
backend/cli/skills/chemistry/binding-affinity/SKILL.md
backend/cli/skills/chemistry/datamol/SKILL.md
backend/cli/skills/chemistry/deepchem/SKILL.md
backend/cli/skills/chemistry/denovo-design/SKILL.md
backend/cli/skills/chemistry/diffdock/SKILL.md
backend/cli/skills/chemistry/drug-design/SKILL.md
backend/cli/skills/chemistry/hypogenic/SKILL.md
backend/cli/skills/chemistry/matchms/SKILL.md
backend/cli/skills/chemistry/medchem/SKILL.md

Metadata

Files
0
Version
1b7978c
Hash
3936c44e
Indexed
2026-07-11 17:33

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 04:23
浙ICP备14020137号-1 $Гость$