pull-data-from-server
Pull computed flat files from the remote server to local disk — rsync into a timestamped snapshot under magma/DATA/snapshots/, then replace canonical local DATA/ working dirs from the most recent snapshot. Reads connection details from lmfdb-server.conf at the project root (falls back to magma/scripts/data-generation.conf for hecke). Use whenever the user says "pull data from server", "sync server data locally", "import server results", "get the latest computed data from the server", or any time remote computation results need to be brought to local disk.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pull-data-from-server
- description
- Pull computed flat files from the remote server to local disk — rsync into a timestamped snapshot under magma/DATA/snapshots/, then replace canonical local DATA/ working dirs from the most recent snapshot. Reads connection details from lmfdb-server.conf at the project root (falls back to magma/scripts/data-generation.conf for hecke). Use whenever the user says "pull data from server", "sync server data locally", "import server results", "get the latest computed data from the server", or any time remote computation results need to be brought to local disk.
03 SKILL.md 正文
pull-data-from-server
Dependency check
Before proceeding, verify that the server conf exists. If lmfdb-server.conf is not found at the project root and magma/scripts/data-generation.conf is not found, stop and tell the user:
I'm sorry, I can't do that — no server conf found. Run /configure-server (mathcity-lmfdb.configure-server) to create lmfdb-server.conf at your project root. (This conf holds your SSH connection details for the compute server.)
Do not proceed to run pull-from-server.sh if neither conf candidate is present.
Purpose: Copy remotely-computed flat files to local disk. The pipeline is:
remote:$REMOTE_REPO/magma/DATA/ → local magma/DATA/snapshots/data-server-MM-DD-YY-NN/
→ local magma/DATA/gamma0/
→ local magma/DATA/orders/
→ local magma/DATA/sl2/
→ local magma/DATA/subgroups/
→ local magma/DATA/cbmf_gamma0_eigenforms/
→ local magma/DATA/cbmf_sub_eigenforms/
The script magma/scripts/pull-from-server.sh handles this entirely. Just run it:
bash magma/scripts/pull-from-server.sh
That script reads the conf for connection details — it discovers lmfdb-server.conf at the project root first, then falls back to magma/scripts/data-generation.conf (hecke convention). If neither exists, run mathcity-lmfdb.configure-server or copy lmfdb-server.conf.example to your project root.
What the script does (for reference)
- Determines a fresh snapshot name
data-server-MM-DD-YY-NN(incrementing NN if today already has one). - rsyncs each canonical DATA/ dir from the remote server into the snapshot.
- Finds the most-recent snapshot and rsyncs it into the canonical local working dirs (
--deleteso local matches server exactly). - Reports which dirs were updated and which were absent from the snapshot.
Re-running is safe and idempotent. Local-only dirs (e.g. quarantine dirs) are never touched.
Report to the user
- Snapshot path created
- Which canonical dirs were updated and approximate file counts
- Any dirs absent from the snapshot (skipped)
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
using-superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
using-git-worktrees
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code