agentleFS
chiKekachiKeka/csitrep-generator/skills/validate/SKILL.md

validate

Skill0 starsChanged 8 months agoMITView on GitHub

Validate project data before generating a report. Checks that files are in the correct folders, data is readable, and content matches the expected domain. Use before generating a report or when data quality is a concern.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use explore, plan and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • genomewalkerSkill

    explore

    RLM-style recursive memory exploration - dynamically navigate the memory graph

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 10 projects that use this

  • MicrosoftSkill

    worktree

    Create, reuse or clean up a dedicated git worktree for working on a pull request or a private branch. Use from any PR-scoped workflow that needs an isolated checkout to keep current code and build output untouched.

    Also in 3 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 6 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 8 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check that all project data is correctly organized, readable, and domain-appropriate before generating a report.

    line 16
  2. Very specific:

    Read ./data/config/project-info.json to get the domain-to-folder mapping.

    line 20
  3. Very specific:

    If not configured, tell the user to run /csitrep-generator:setup first.

    line 21
  4. Distinctive:

    Check that the folder path exists.

    line 28
  5. Distinctive:

    Read the first 50 lines (or first page for PDFs) of each file and do a quick relevance check:

    line 42
  6. Distinctive:

    Use these heuristics per project type:

    line 46
  7. Distinctive:

    General rule: If less than 20% of keywords match, flag as WARNING - "may be in wrong folder."

    line 62
  8. Distinctive:

    Check that at least 3 of 5 domains have data (otherwise report will be thin)

    line 74
  9. Distinctive:

    Check for extremely unbalanced data (e.g., 20 files in one folder, 0 in another)

    line 75
  10. Very specific:

    Verify project-info.json has all required fields (name, type, domains, lead)

    line 76
  11. Distinctive:

    Never modify or delete data files without explicit user confirmation

    line 114
  12. Distinctive:

    Run this automatically as part of the generate flow (called from generate Step 4)

    line 118

“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Data Validation

Check that all project data is correctly organized, readable, and domain-appropriate before generating a report.

Step 1: Load Configuration

Read ./data/config/project-info.json to get the domain-to-folder mapping. If not configured, tell the user to run /csitrep-generator:setup first.

Step 2: Check Each Domain Folder

For each domain in the config, validate its data folder:

2a. Folder Exists

Check that the folder path exists. If not, flag as ERROR.

2b. Has Files

Count files in the folder (excluding README.md and hidden files).

  • 0 files: flag as WARNING - "No data for [Domain]"
  • 1+ files: OK

2c. File Readability

For each file, verify it can be read:

  • PDF, CSV, TXT, MD: try reading the first few lines
  • XLSX, DOCX, PPTX: check if a converted version exists (.csv, .txt). If not, flag as WARNING - "needs preprocessing"
  • Unknown extensions: flag as INFO - "unrecognized format, may not be analyzable"

2d. Content Relevance Check

Read the first 50 lines (or first page for PDFs) of each file and do a quick relevance check:

  • Does the content relate to the domain it's in?
  • Example: a safety inspection report in the cost folder = likely misplaced

Use these heuristics per project type:

Construction:

  • schedule/: look for dates, activities, milestones, % complete, float, CPM
  • cost/: look for dollar amounts, budget, actual, variance, line items, cost codes
  • safety/: look for incidents, inspections, OSHA, PPE, hazard, injury
  • contracts/: look for RFI, submittal, change order, contractor, specification
  • site/: look for weather, workforce, equipment, delivery, conditions

Software:

  • sprint/: look for stories, points, velocity, backlog, sprint, release
  • budget/: look for hours, rates, burn, forecast, resource, cost
  • quality/: look for bugs, tests, coverage, defects, regression, QA
  • blockers/: look for dependency, blocked, risk, issue, impediment
  • infra/: look for uptime, deploy, pipeline, server, incident, SLA

General rule: If less than 20% of keywords match, flag as WARNING - "may be in wrong folder."

2e. Duplicate Check

Flag if the same file appears in multiple domain folders.

2f. Stale Data Check

Flag files older than the reporting period:

  • Weekly projects: files older than 14 days = WARNING "may be stale"
  • Monthly projects: files older than 45 days = WARNING "may be stale"

Step 3: Cross-Domain Checks

  • Check that at least 3 of 5 domains have data (otherwise report will be thin)
  • Check for extremely unbalanced data (e.g., 20 files in one folder, 0 in another)
  • Verify project-info.json has all required fields (name, type, domains, lead)

Step 4: Present Validation Report

DATA VALIDATION REPORT
======================

Project: [name]
Validated: [timestamp]

SUMMARY
  Domains with data:    [X] of 5
  Total files:          [X]
  Errors:               [X]
  Warnings:             [X]

DOMAIN STATUS
  [Domain 1]: OK (3 files) / WARNING (details) / ERROR (details)
  [Domain 2]: OK (2 files) / WARNING (details) / ERROR (details)
  ...

ISSUES FOUND
  [ERROR]   [description + suggested fix]
  [WARNING] [description + suggested fix]
  [INFO]    [description]

READY TO GENERATE: [YES / YES WITH WARNINGS / NO - fix errors first]

Step 5: Offer Fixes

For common issues, offer to fix automatically:

  • Misplaced file: "Move [file] from [folder] to [folder]?"
  • Missing preprocessing: "Run preprocessing to convert [X] Office files?"
  • Missing folders: "Create missing data folders?"

Rules

  • Never modify or delete data files without explicit user confirmation
  • The relevance check is heuristic - flag as warning, not error
  • A project with warnings can still generate a report
  • A project with errors (missing config, no data at all) should not
  • Run this automatically as part of the generate flow (called from generate Step 4)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.