project-safety

Install or coordinate research project safety rules and establish protected folder boundaries for data, code, outputs, and paper sources. Intended when a project lacks constraints or is migrating to governed structures; not for auditing an entire research framework (use $audit-project-research for audits).

Last repository push
GitHub Stars
155
Forks
29
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "project-safety" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9c301271ebf9b74d4e2993e75a5039fd6ca06863c398e3915880c99d62ec654e. Verify the upstream source and version against https://github.com/flonat/flonat-research before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Install or coordinate research project safety rules and establish protected folder boundaries for data, code, outputs, and paper sources. Intended when a project lacks constraints or is migrating to governed structures; not for auditing an entire research framework (use $audit-project-research for audits).

0 Downloads

Introduction source: third_party · flonat · 0.0.1 Reference

SkillPi interpretation

Tasks
Install or reconcile research-project safety rules and protected folder boundaries for data, code, outputs, and paper sources. Use when a project lacks guardrails or is being migrated into the governed structure. Not for auditing the full research scaffold; use $audit-project-research.
Audience
Starting a new research project folder Before asking Claude to reorganize files When Claude will be running code or modifying data Setting up a project for collaborative work
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: project-safety
description: "Install or reconcile research-project safety rules and protected folder boundaries for data, code, outputs, and paper sources. Use when a project lacks guardrails or is being migrated into the governed structure. Not for auditing the full research scaffold; use $audit-project-research."
argument-hint: "[project-path]"

Project Safety Skill

CRITICAL RULE: Never delete data or code files. Never. Use legacy/ folder for originals. Copy, don't move.

Establish safety rules and structures before Claude makes changes to research projects.

Purpose

Based on Scott Cunningham's workflow: prevent accidental data loss by establishing rules and using legacy folders before Claude reorganizes or modifies project files.

When to Use

  • Starting a new research project folder
  • Before asking Claude to reorganize files
  • When Claude will be running code or modifying data
  • Setting up a project for collaborative work

Safety Rules Template

Add this to any project's CLAUDE.md file:

## Safety Rules

1. **Never delete data files** — No .csv, .dta, .xlsx, .parquet, or any data format
2. **Never delete code files** — No .py, .R, .do, .tex, .md or scripts
3. **Use legacy/ folder** — If reorganizing, move originals to legacy/ first
4. **Copy from legacy, don't move** — Always preserve the original

### If you need to reorganize:
1. Create a legacy/ folder if it doesn't exist
2. Move ALL original files into legacy/
3. Copy (not move) needed files into new structure
4. Never modify anything in legacy/

Directory Structure

After safety setup:

project/
├── CLAUDE.md           ← Safety rules + project context
├── README.md           ← Project documentation
├── legacy/             ← PROTECTED: original files
│   └── [all originals]
├── code/
│   ├── R/
│   ├── python/
│   └── stata/
├── data/
│   ├── raw/            ← Copied from legacy, never modified
│   └── processed/
├── output/
│   ├── figures/
│   └── tables/
├── docs/
│   └── manuscript/
└── log/                ← Progress logs

Dry Run Pattern

Before Claude executes potentially destructive operations, ask for a preview:

"Tell me what commands you would run to reorganize this folder, but don't execute them yet."

"Show me what files would be affected by this change before you make it."

"Walk me through your plan for cleaning this data before you run any code."

When to use dry runs:

  • File operations (move, delete, rename)
  • Git operations (reset, clean, force push)
  • Database operations
  • Batch processing
  • Any operation affecting multiple files

After reviewing:

  • If correct: "Go ahead"
  • If wrong: "Wait — don't do X, instead Y"

Workflow

  1. Create CLAUDE.md with safety rules
  2. Create legacy/ folder
  3. Move all originals to legacy/
  4. Copy needed files into new structure
  5. Verify legacy/ contains everything
  6. Proceed with project work

Prompt Template

I'm starting work on [PROJECT]. Before we do anything:

1. Create a CLAUDE.md with safety rules (never delete data/code, use legacy folder)
2. Create a legacy/ folder
3. Move all existing files into legacy/
4. Show me the proposed new directory structure before creating it

Do a dry run first — tell me what you would do before doing it.

Why This Matters

  • Claude operates at speed — mistakes happen fast
  • You can't always verify what Claude will do before it does it
  • Version control (git, Dropbox) helps but prevention is better
  • The legacy/ folder is your safety net
  • Dry runs give you a chance to catch mistakes

Example Use

"Set up my new Carbon Markets project with proper safety rules. Create the CLAUDE.md, legacy folder, and recommended directory structure. Show me your plan before executing."

Version history

  1. v0.3.1 GitHub ↗
    Original release notes

    `v0.3.1` is a maintenance release: sharper review agents, a trimmed skill set, and corrected install documentation. The installer and client contract are unchanged from `v0.3.0`. ## Changes - **Object-reality preflight for reviewers.** `paper-critic`, `referee2-reviewer`, `domain-reviewer`, and `reproducibility-auditor` now run a mandatory Step 0 before any correctness lens. It asks whether the object of study is named, whether the comparator is degenerate, whether any category is empty, and whether it was soundly delivered. The shared checklist lives in `skills/shared/object-reality-preflight.md`. - **Methods-description audit.** `code-paper-auditor` adds a phase that checks the paper's methods text against what the code actually does, and `review-response` re-audits empirical papers against their artifact before drafting a reply. - **Council fallback.** `council-api` now falls back to the top-ranked assessment when synthesis fails, with a regression test. - **Legacy meeting skills retired.** The seven `meetings-*` skills (`cleanup`, `debrief`, `list`, `prep`, `recap`, `search`, `weekly`) are removed. Upgrading does not delete copies installed by `v0.3.0` (they remain under `~/.claude/shared-skills/` and `~/.agents/skills/`); remove them manually if you no longer want them. - **Documentation.** The README now documents `npx flonat-research` as the primary install path, component counts and availability tables are regenerated, and references to files outside this distribution are unlinked. ## Install or update ```bash npx flonat-research --client both ``` Use `--client claude` or `--client codex` for a single-client installation, and `--check` to verify an existing install. **Full changelog:** https://github.com/flonat/flonat-research/compare/v0.3.0...v0.3.1

  2. v0.3.0 GitHub ↗
    Original release notes

    `v0.3.0` rebuilds flonat-research as a client-neutral academic research framework for both Claude Code and Codex. It replaces the earlier Claude-only starter-kit model with explicit installation contracts, generated client adapters, and managed local copies. ## Highlights - **Claude Code and Codex support.** Canonical, client-neutral sources generate the appropriate Claude Markdown and Codex TOML adapters, with an explicit capability matrix for client-specific features. - **Managed installer.** Install for `claude`, `codex`, or `both`; preserve unmanaged files; back up divergent managed files; and verify the installation in check mode. - **Expanded research toolkit.** The public distribution now contains 94 skills, 15 specialist agents, 18 rules, and 3 optional Claude hooks, spanning research design, evidence and citation checks, paper review, LaTeX, data analysis, reproducibility, and project handoffs. - **Portable, files-first continuity.** Handoffs and project context live in repository files, making work easier to continue across clients and machines. - **Stronger release safeguards.** Public-sync, portability, personal-detail, leak, and package-content gates protect the published distribution. ## Migration notes This is a substantial architectural update from the Claude-only, symlink-based setup in `v0.2.x`. - Existing users should follow [`docs/transitioning-to-flonat-research.md`](https://github.com/flonat/flonat-research/blob/main/docs/transitioning-to-flonat-research.md). - Use `--migrate-legacy` only after inspecting the legacy links reported by the installer. - Public and friends distributions are alternatives; do not layer them into the same managed destination. ## Install Install for both supported clients: ```bash npx flonat-research --client both ``` Use `--client claude` or `--client codex` for a single-client installation. Requirements: Node.js 18+, Python 3.11+, and [`uv`](https://docs.astral.sh/uv/). TeX is optional and required only for LaTeX workflows. **Full changelog:** https://github.com/flonat/flonat-research/compare/v0.2.1...v0.3.0

  3. v0.2.1 GitHub ↗
    Original release notes

    Patch release — cleans up the public starter kit. ## Fixes - **Removed 11 stale/renamed skill directories** that were shipping in 0.2.0 (e.g. old `validate-bib` → now `bib-validate`, `consolidate-memory` → `memory-cleanup`, `parse-reviews` → `synthesise-reviews`, plus the deprecated `sync-notion`). These caused duplicate/old-name skills to appear under `~/.claude/skills/` after install. - **Sync hardening:** the public-sync script now prunes orphaned skill directories (renamed/removed skills) instead of leaving them behind, so this class of drift can't recur. Public kit is now 51 skill directories (49 catalogued + the public-only `init-project` + shared modules), 15 agents, 18 rules, 9 hooks. ## Install ```bash npx flonat-research ```

  4. v0.2.0 GitHub ↗
    Original release notes

    Claude Code infrastructure for academic research — skills, agents, hooks, and rules for LaTeX, bibliography, proofreading, research design, and project management workflows. ## Highlights since v0.1.0 **Coverage:** 61 skills · 15 agents · 18 auto-loaded rules · 9 hooks. **New agents:** `code-review`, `blindspot`, `claim-verify`, `code-paper-auditor`, `fatal-error-check`, `gemini-research`, `codex-research`, `artifact-coherence-auditor`, `reproducibility-auditor`. **New rules:** `doi-verification`, `mark-unverified`, `no-hardcoded-results`, `python-uv`, `severity-gradient`, `latex-hygiene`, `paper-code-consistency`, `subagent-write-guard`, `spec-before-quality`, `audit-before-fix`. **New skill families:** bibliography (`bib-parse`, `bib-coverage`, `bib-filter`), LaTeX scaffolding (`latex-scaffold`, `latex-template`), document formats (`docx`, `pdf`, `xlsx`), research design (`causal-design`, `experiment-design`, `synthetic-data`), writing voice (`voice-analyzer`, `voice-editor`), and paper-book companions. **Packaging fix:** corrected the npm package name and repository URL to `flonat-research` so `npx flonat-research` resolves correctly. ## Install ```bash npx flonat-research ``` Or clone for full customisation: ```bash git clone https://github.com/flonat/claude-research.git cd claude-research ./scripts/setup.sh ```

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Highlights

  • 提供研究项目安全规则模板和目录结构建议
  • 适用于新项目初始化和迁移治理结构的明确场景
Trigger Precision85/100

Highlights

  • description 明确界定使用边界并排除审计用途
  • argument-hint 提供清晰的参数提示
Structure and Standards95/100

Highlights

  • 文档结构完整,涵盖从规则到示例的全流程
  • 包含 dry run 模式和 prompt template 提升可用性
Execution Reliability90/100

Highlights

  • 建立 legacy/ 文件夹和 never delete 规则防止数据丢失
  • dry run 机制确保用户确认后再执行操作
Evidence Verifiability (mean of the first four)84/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.