plan
fialr plan <target> [options]Scan, classify, and produce a reorganization plan. No files are touched. Review the plan before executing.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
target | Directory to plan for (required) |
Options
Section titled “Options”| Option | Description |
|---|---|
-o, --output-dir PATH | Output directory for plan artifacts |
--sensitivity-rules PATH | Path to sensitivity.yaml (default: config/sensitivity.yaml) |
--schema PATH | Path to schema.yaml (default: config/schema.yaml) |
What it does
Section titled “What it does”plan runs three phases in sequence:
- Scan — inventory the target directory (same as
fialr scan) - Classify — assign sensitivity tiers and categories (same as
fialr classify) - Plan — generate a
plan.csvmapping each file from its current location to a proposed destination
The planner reads schema.yaml to determine destination directories. Each file’s category (from classification) maps to a directory in the schema. The planner applies the naming convention to generate a proposed filename.
Plan artifacts
Section titled “Plan artifacts”When --output-dir is specified, the plan command writes:
| File | Contents |
|---|---|
plan.csv | Machine-readable plan: source path, destination path, proposed name, operation type, confidence, reason |
plan_preview.md | Human-readable summary for review |
manifest.json | Pre-execution file state snapshot |
Conflict detection
Section titled “Conflict detection”The planner detects and flags:
- Naming collisions — two files that would receive the same destination name
- Path collisions — two files that would be placed at the same destination path
- Tier 1 restrictions — Tier 1 files are marked as manual-only and excluded from automated operations
Conflicts are reported in the plan preview. They do not prevent plan generation, but they must be resolved before execution.
Output
Section titled “Output”To stderr:
plan ~/Documents
SCAN 847 files (2.3s) CLASSIFY 847 files (0.1s) PLAN 847 operations (0.3s)──────────────────────────────────────────────────────── moves 812 renames 743 conflicts 3 tier 1 12 (manual only) total 2.7sExamples
Section titled “Examples”# Generate a planfialr plan ~/Documents -o ./plan
# Use custom schemafialr plan ~/Documents -o ./plan --schema ./my-schema.yamlThe generated plan_preview.md is the primary review artifact. Read it before proceeding to execution.
See also
Section titled “See also”- Planning guide — how to review and approve a plan
- organize — run the full pipeline including execution