Introduction to the OpenClaw Canonical Data Map
In the world of complex automated systems, especially those dealing with
sensitive financial and legal data, order is not just a preference; it is a
necessity. For developers and integrators working with the OpenClaw Greek
Accounting ecosystem, the canonical-data-map (specifically found under the
satoshistackalotto repository) serves as the ultimate rulebook. It is the
architectural blueprint that dictates how every piece of information is
stored, accessed, and processed across the entire system.
The canonical data map is effectively the 'system of record' for file paths
and naming conventions. By providing a single source of truth, it eliminates
ambiguity, ensuring that when an automated process looks for a VAT filing or a
client’s payroll data, it knows exactly where to look. This post will break
down the functionality of this skill and why it is indispensable for the
OpenClaw framework.
What is the Canonical Data Map?
At its core, the canonical-data-map is a configuration and reference
document. It is not an active service with binaries or credentials; rather, it
is a structural mandate. The primary goal of this skill is to enforce a
uniform directory structure across all OpenClaw installations. Whether you are
dealing with government submissions, bank reconciliation, or client profiles,
the map ensures that every OpenClaw instance speaks the same 'filesystem
language'.
By defining the OPENCLAW_DATA_DIR environment variable and laying out a
strict tree of directories, the skill forces developers to adhere to a
standardized hierarchy. Any deviation from this structure without a version
update is considered a violation of the system's design principles, which
keeps the ecosystem maintainable and scalable.
Understanding the Root Directory Structure
The map organizes data into logical 'domains' that mirror the actual workflow
of a Greek accounting office. Let's look at the critical segments defined in
the schema:
1. The Incoming Pipeline (/data/incoming/)
The incoming directory is the entry point for all raw data. Whether
documents arrive via email, manual upload, or scanner, they must land here
first. The naming convention here is deliberately loose to ensure that
original metadata is preserved for audit trails. The system is designed to
identify the document type and only assign it a 'canonical' name once it moves
into the processing phase. Subdirectories like /invoices, /receipts,
/statements, and /government ensure that raw documents are categorized
immediately upon arrival.
2. The In-Flight Pipeline (/data/processing/)
This is the engine room of OpenClaw. The processing folder is a temporary,
volatile workspace. Files here are mid-pipeline and are strictly 'work-in-
progress'. Once a file is processed—be it OCR extraction, bank reconciliation,
or VAT preparation—it is moved out of this directory to a permanent home.
Importantly, no other skill should look to this directory as a final source of
data. It is transient by design, and files are cleaned up or archived as soon
as their purpose is fulfilled.
3. The Client Master Records (/data/clients/)
This is arguably the most important section of the filesystem. The
/data/clients/ directory acts as the single source of truth for all client-
specific data, indexed by their AFM (the Greek tax identification number).
This directory is highly structured, containing profiles, identifiers, contact
information, notes, and sub-directories for compliance, documents, payroll,
and financial statements. Only the designated client-data-management skill
is authorized to write to this tree, protecting the integrity of the master
records.
The Evolution: Introducing /data/memory/
A notable update in version 1.1 of the canonical map is the addition of
/data/memory/. This directory represents a shift toward more intelligent,
agentic behavior within the OpenClaw system. It stores the agent's 'episodic
memory', including failure logs, pattern recognition stores, and the GitHub
proposal queue. By including this in the canonical map, the developers have
ensured that all future skills (Phase 3B+) have a standard location to hook
into for self-learning and error-logging purposes. This allows the system to
not only track accounting data but to track its own performance and history.
The Importance of Adherence
The rigid structure provided by the canonical-data-map is the primary reason
the OpenClaw Greek Accounting system remains reliable. In a field as regulated
as Greek accounting, where compliance (VAT, EFKA, myDATA) is subject to strict
audits, knowing exactly where every document resides is crucial. The naming
conventions, the separation of temporary processing data from permanent client
records, and the standardized system logs allow for automated auditing and
seamless integration between disparate skills.
Best Practices for Developers
If you are building a new skill for the OpenClaw ecosystem, keep these points
in mind:
-
Never define your own top-level directory: Stick to the existing structure defined in the
SKILL.md. If your skill needs a new organizational category, propose it through the canonical data map versioning process. -
Respect the temporary nature of /processing/: Do not treat files in the
processingdirectory as permanent records. Always migrate processed data to theclientsorcompliancedirectories. -
Use the AFM as a primary key: When dealing with client data, always refer to the
/data/clients/{AFM}/structure. This maintains uniformity across the entire system. -
Enable Logging: Ensure your skill includes hooks to write to
/data/memory/for failure logs and state tracking, as this is now a required part of the system architecture.
Conclusion
The canonical-data-map is more than just a list of folders; it is the
fundamental logic that holds the OpenClaw ecosystem together. It ensures that
the system is not just a collection of disconnected scripts, but a unified,
coherent, and audit-ready accounting platform. By standardizing the
filesystem, OpenClaw reduces the cognitive load for developers and ensures
that, no matter how large the client base grows, the data remains consistent
and accessible. Whether you are an accountant using the system or a developer
extending its functionality, understanding this map is your first step toward
mastering OpenClaw.
For those looking to dive deeper, the full documentation and the latest
version history can be found in the openclaw/skills GitHub repository.
Adhering to this map is the best way to ensure your contributions are
compatible with the future of the OpenClaw Greek Accounting framework.
Skill can be found at:
data-map/SKILL.md>
Top comments (0)