structural-integrity

structural-integrity is a command for coding agents from datacore-one/datacore. It costs 19 tokens per session (756 once invoked), scanned A, original, MIT.

A checker for a project’s folder structure, file naming, companion files, and large-file tracking. Git LFS is a Git feature for storing large files outside the normal repository history.

In plain words
What is it for?
Use it to check or repair folder hierarchies, naming rules, required companion files, and Git LFS tracking.
Why use it?
It finds organisational and repository-structure problems before they spread. It can also report issues or fix them when requested.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/datacore-one/datacore/structural-integrity
Clone the repo
git clone --depth 1 https://github.com/datacore-one/datacore

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for structural-integrity

README.md
[![agentmods](https://agentmods.dev/badge/commands/datacore-one/datacore/structural-integrity.svg)](https://agentmods.dev/commands/datacore-one/datacore/structural-integrity)
Your own site
<a href="https://agentmods.dev/commands/datacore-one/datacore/structural-integrity"><img src="https://agentmods.dev/badge/commands/datacore-one/datacore/structural-integrity.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.00756
Opus 5 $0.00010 $0.00378
Sonnet 5 $0.00004 $0.00151
Haiku 4.5 $0.00002 $0.00076

Measured yesterday against content hash 45162ed45d75, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

structural-integrity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.datacore/commands/structural-integrity.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/structural-integrity Command

Command Context

When to Reference DIP-0015

Always reference when:

  • Validating folder hierarchy
  • Checking companion file requirements
  • Detecting naming violations
  • Auditing Git LFS tracking

Key decisions this DIP informs:

  • Expected folder structure (0-inbox/, 1-tracks/, etc.)
  • Companion requirements for non-readable files
  • LFS threshold (>10MB)
  • Naming convention (kebab-case)

Quick Reference

Question Answer
Expected structure? 0-inbox/, 1-tracks/, 3-knowledge/, 4-archive/
Companion required? .key, .pptx, .psd, .ai files
LFS threshold? Files > 10MB
What DIPs govern this? DIP-0015 (Semantic Org), DIP-0002 (Layers)

Agents This Command Invokes

Agent Purpose
structural-integrity Audit and fix

Integration Points

  • DIP-0015 - Folder structure specification
  • /ingest - Triggers post-ingest check
  • /gtd-weekly-review - Weekly audit

Audit and maintain the organizational structure of Datacore.

Usage

/structural-integrity [check|report|fix]
  • check - Quick scan, return pass/fail with summary (default)
  • report - Detailed diagnostic of all issues found
  • fix - Attempt automatic corrections (with confirmation)

What It Detects

Issue Type Severity
Misplaced files ⚠️ Warning
Missing companions (.key without .md) ⚠️ Warning
Orphaned companions ❌ Error
Missing _index.md ℹ️ Info
Naming violations ℹ️ Info
Unprocessed inbox (>7 days) ⚠️ Warning
Git LFS issues ❌ Error
Broken wiki-links ⚠️ Warning

Examples

/structural-integrity              # Quick check
/structural-integrity check        # Same as above
/structural-integrity report       # Detailed report
/structural-integrity fix          # Attempt fixes
/sif                               # Alias for check

Output

Check Mode

STRUCTURAL INTEGRITY CHECK
==========================
Status: ⚠️ WARNINGS FOUND
Errors: 2 | Warnings: 5 | Info: 8

Quick Issues:
❌ 1-teamspace/pitch-deck.key - Missing companion
⚠️ 0-personal/0-inbox/ - 3 items older than 7 days

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 118 lines · 19 tokens per session scan A 45162ed45d75

Subscribe to this mod's changes

structural-integrity is a command published in the GitHub repository datacore-one/datacore (4 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 756 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.