Create a standardized, secure workspace in the current directory with protected raw data, one-way data flow, logging, and loop prevention. Use when initializing a new workspace, sorting incoming CSV/XLSX/JSON files, or enforcing deterministic workspace setup without delete operations.
Create a deterministic workspace root inside the current directory only. Protect source data, avoid destructive actions, and finish in a stable idle state.
Ensure all skills work together, produce reproducible outcomes, process data safely, and avoid infinite loops. Treat the platform as a fixed-rule toolbox where each skill has:
Build execution around four mandatory components:
Skill RegistrySkill ExecutorState ManagerSafety GuardWORKSPACE_ROOT = current_directory.WORKSPACE_ROOT.../, /, C:\, or system folders.archive/ as destination.data/raw is read-only after import.data/clean allows transformations.data/output stores generated results only.RAW -> CLEAN -> OUTPUT.output or clean back into raw.workspace_state.json.logs/YYYY-MM-DD.log.Execute these steps in order and stop after completion:
WORKSPACE_ROOT to current directory.workspace_log.json.workspace_state.json.data/rawdata/cleandata/outputautomationreportsdashboardlogsarchivearchive/errorsWORKSPACE_ROOT:.csv, .xlsx, .json.data/, archive/, and logs/..csv and .xlsx (and .json if present) to data/raw.;.data/clean and log conversion.archive/errors.data/clean and generated artifacts to data/output or reports.workspace_state.json with processed file fingerprints/status and status transitions.Maintain a registry of available skills, for example:
workspace_erstellencsv_analysierendaten_bereinigenreport_generierendashboard_erstellenarchivierenEach registry entry must define:
nameinputoutputscopesafety_levelEnforce:
Execution path:
Command -> Skill Lookup -> Safety Check -> Execution -> Logging -> FinishPersist state in workspace_state.json, minimum schema:
{
"processed_files": [],
"active_skill": "",
"last_execution": "",
"status": "idle"
}
If an input file is already in processed_files, skip it.
Block at least:
Allow only:
Do not start new autonomous processes.
Rule: one command -> one skill -> one result.
workspace_state.json.Use this prompt when invoking the skill:
Skill: Workspace erstellen
Goal: Create a secure workspace structure in the current directory.
Rules:
1) Work only inside the current directory.
2) Never delete files automatically.
3) Create folders: data/raw, data/clean, data/output, automation, reports, dashboard, logs, archive.
4) Move CSV and XLSX files into data/raw.
5) RAW files are read-only.
6) Processing output must go into data/output.
7) Write all operations into logs.
8) Prevent repeated processing using a workspace_log file.
8) Prevent repeated processing using a workspace_state file.
9) Stop after initialization is complete.
Final state: workspace ready for data processing.
Load references/foundation-rules.md for policy details and rationale. Load references/framework-architecture.md for strategic, platform, and roadmap details.