light-citation
Verify scholarly references and claim-citation support for Light stage 10. Use when auditing…
Audit, plan, scaffold, and safely migrate research project structures across greenfield, existing Git/non-Git repositories, and monorepo subroots. Use for project folders, repository cleanup, source inventory, move maps, naming and storage policy, Python/R/mixed/LaTeX profiles,
$ npx -y skills add Light0305/Light-skills --skill light-project-structure --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/light-project-structureContext preview
The summary Claude sees to decide when to auto-load this skill.
Audit, plan, scaffold, and safely migrate research project structures across greenfield, existing Git/non-Git repositories, and monorepo subroots. Use for project folders, repository cleanup, source inventory, move maps, naming and storage policy, Python/R/mixed/LaTeX profiles,
name: light-project-structure description: >- Audit, plan, scaffold, and safely migrate research project structures across greenfield, existing Git/non-Git repositories, and monorepo subroots. Use for project folders, repository cleanup, source inventory, move maps, naming and storage policy, Python/R/mixed/LaTeX profiles, template provenance, conflict review, applied-move evidence, or rollback. Existing projects are read-only until the user authorizes exact action IDs bound to a plan digest. Preserve uncommitted and untracked work, symlinks, submodules, and memory-pm's .light content. This is an off-DAG local tool: do not emit findings or invent a STAGE_GATES/ROUTES connection.
Own the **visible project tree** and its migration evidence. Do not mistake a tidy directory for reproducible research.
Read [`references/project-lifecycle-resource-map.md`](references/project-lifecycle-resource-map.md) before an existing-repository migration. It defines artifacts, policy, access levels, provenance, and cross-skill ownership. Use [`references/structure-profiles.json`](references/structure-profiles.json) for small profile minima and [`templates/project-policy.template.json`](templates/project-policy.template.json) for explicit project/file policy. Use `scripts/structure_governance_gate.py` before delivery to validate profile choice, existing-project read-only safety, template residuals, secret scan, environment doctor, authorization binding, applied-manifest binding, and rollback evidence.
1. Treat inventory as read-only access, not authorization to move. 2. Never overwrite, delete, run `git rm --cached`, initialize DVC, rewrite configuration, or move a symlink automatically. 3. Never use `--force` as consent. The lifecycle has no force bypass. 4. Preserve all `.light/` content. `memory-pm` alone creates or edits passport, project card, decision log, version history, terminology, and handoff files. 5. Keep absent facts `UNKNOWN`. A path such as `data/raw` does not prove size, sensitivity, immutability, recomputability, or Git policy. 6. Do not turn this overlay into a DAG node. Emit no `light.findings.v1`; add no `STAGE_GATES`, `ROUTES`, stage number, or back-edge. 7. State that structural conformance does not prove data quality, experiment reproducibility, statistical validity, or paper quality. 8. Never ship a generated or migrated tree with unresolved template placeholders, unhandled secret-scan hits, or missing required Python/R/environment checks.
| Situation | Mode | |---|---| | Empty target and the user wants a starting tree | `scaffold` with one explicit profile | | Existing repository, monorepo package, or non-Git directory | `intake`, then stop at the decision | | User approved exact moves after seeing the plan | create authorization, then `apply` | | Applied moves need reversal | `rollback` from the applied manifest |
Do not scaffold a non-empty directory. Do not retrofit a fixed 23-directory tree onto R, paper-only, mixed-language, custom, or monorepo projects.
Collect or preserve as `UNKNOWN`:
non-Git directory;
collaborators, CI, license, and retention;
submodules, symlinks, large files, and sensitive path signals.
Choose the smallest profile after inspecting observed technology signatures and the user's declared deliverables:
Profiles are extensible minima, not compliance verdicts. The selected profile is not evidence about the project. `intake` records observed file/config signals separately from policy-declared artifact types, recommends a profile, and fails the governance gate when a different profile has no concrete `profile_selection_reason`.
Copy the policy template outside the source root, fill known project facts, and add file rules only where there is evidence. Legitimate tracked artifacts include small public fixtures, reviewed golden files, DVC pointers, final paper figures, release artifacts, or audit evidence when project policy requires them. Large/sensitive source data, models, and results usually need DVC/object storage, but require a decision rather than a directory-name verdict.
Run:
python scripts/scaffold.py intake <root> --out <evidence-dir> \ --profile mixed-research --policy <project-policy.json>
The command writes evidence to `--out` and verifies that the source snapshot and Git status did not change.
`intake` also emits technology signatures, the environment doctor, template residual scan, secret scan, and governance report named in the resource map. Tool checks derive from observed or explicitly declared artifact types, not from the chosen profile alone. If the project requires Python, R, Quarto, DVC, LaTeX, or other local tools, record those requirements in the policy. Use the standalone doctor command only when you need an extra ad-hoc check:
python scripts/structure_governance_gate.py --doctor python r
Read the intake artifacts named in the resource map. Check:
`UNKNOWN` owner, producer, recomputability, sensitivity, classification, target, and policy basis;
evidence from `policy.project.artifact_types`; the selected profile matches the recommendation or has a concrete user override reason;
Repo: Light0305/Light-skills
Verify scholarly references and claim-citation support for Light stage 10. Use when auditing…
Light 科研主线第 2 步·数据工程:**找得到且用得起的数据**(来源/许可/版本/大小/split)+ **提 idea 前先判数据可行性** (数据够不够支撑研究/统计功效)+…
Light 科研主线 stage 6:把冻结的 question/estimand、experiment matrix、pre-registration 与 data lineage…
Light 科研主线第 9 步·图表:图服务论点(每图支撑哪条 claim、删了缺什么)+ 出版级规格(栏宽/字号/色盲安全/ 误差棒+n+显著性)+ 视觉诚实(不偷偷截 y 轴/不双…
Light 多格式文件深度理解常驻技能:强大地读 Word / PDF / PPTX / Excel / CSV / 图片 / 视频 / 代码 / 压缩包,**不只提取文字,而是理解结构…