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

generate

Skill0 starsChanged 8 months agoMITView on GitHub

Generate a Situation Report (SitRep). Use when the user asks for a project status report, situation report, weekly report, SitRep, or CSitRep. Works across all project types: construction, software, development programs, product/manufacturing, consulting, and custom projects.

  • Installs packages

17 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

34 rules. 0 are common, 26 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 26

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the file is empty, has no project_type, or has no domains, tell the user: "No project configured yet.

    line 28
  2. Distinctive:

    If the user provided a project name as an argument, use that instead of what's in the config.

    line 32
  3. Distinctive:

    Before processing, archive the current data snapshot for version history:

    line 36
  4. Distinctive:

    Run the preprocessing script to convert any Office files the team has dropped in:

    line 45
  5. Distinctive:

    If the script reports missing dependencies, show the user the install command:

    line 56
  6. Very specific:

    Use Glob to find all *-sitrep.md files in ./output/csitrep/.

    line 66
  7. Distinctive:

    If at least one previous report exists:

    line 68
  8. Distinctive:

    Read the most recent report

    line 69
  9. Very specific:

    If no previous reports exist, set previous_context to null.

    line 77
  10. Very specific:

    Read the domains array from the config.

    line 84
  11. Distinctive:

    If it contains files (excluding README.md and converted duplicates), note the count and types

    line 87
  12. Distinctive:

    If it's empty, warn the user and ask if they want to proceed without that section

    line 88
  13. Distinctive:

    If a file appears misplaced, flag it: "Warning: [file] in [folder] may belong in [other folder]"

    line 90
  14. Distinctive:

    If 0 of 5 domains have data, stop with: "No data found.

    line 92
  15. Distinctive:

    If 1-2 of 5 have data, warn but proceed: "Only [X] of 5 domains have data.

    line 93
  16. Very specific:

    Read the domains array. Spawn ALL agents simultaneously using the Agent tool.

    line 97
  17. Distinctive:

    If an agent fails (timeout, error, or returns empty):

    line 134
  18. Distinctive:

    If retry also fails, mark that domain as: "AGENT ERROR - [Domain] could not be analyzed.

    line 137
  19. Very specific:

    After the RECOMMENDED ACTIONS section and before the RISK SUMMARY, include a PERIOD-OVER-PERIOD TRENDS section.

    line 166
  20. Distinctive:

    Wait for user confirmation or edits.

    line 193
  21. Distinctive:

    Use today's date.

    line 203
  22. Very specific:

    Check project-info.json for slack_delivery config:

    line 207
  23. Very specific:

    If critical issues exist and mention_on_critical has entries, @mention those users

    line 227
  24. Distinctive:

    Use *bold* for section headers

    line 233
  25. Distinctive:

    Use bullet points for findings

    line 234
  26. Distinctive:

    Keep tables as aligned text (Slack doesn't render markdown tables)

    line 235
  27. Distinctive:

    Ask the user if they'd like to:

    line 244
  28. Distinctive:

    After delivery, briefly mention:

    line 253
  29. Distinctive:

    ALWAYS dispatch agents in parallel, never sequentially

    line 261
  30. Distinctive:

    If an agent fails or a folder is empty, still produce the report with available sections

    line 262
  31. Distinctive:

    Never fabricate data - only report what the agents found in the documents

    line 264
  32. Distinctive:

    Keep the report factual and concise - no filler language

    line 265
  33. Distinctive:

    When posting to Slack, never post raw markdown - format for Slack's mrkdwn syntax

    line 266
  34. Distinctive:

    Always generate the dashboard HTML alongside the report when Slack delivery is on

    line 269

“Common” is measured: kept by at least 6 in 10 of the 16 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

SitRep Generator - Orchestrator

You are the orchestrator for generating Situation Reports. You read the project configuration, dispatch the right specialist agents for the project type, and synthesize their findings into a single report.

Step 1: Load Project Configuration

Read ./data/config/project-info.json for:

  • project_name - The project name
  • project_type - One of: construction, software, program, product, consulting, custom
  • reporting_period - weekly or monthly
  • domains - Array of {name, agent, folder} defining the 5 tracking domains
  • Other metadata (owner, lead, budget, dates)

If the file is empty, has no project_type, or has no domains, tell the user: "No project configured yet. Run /csitrep-generator:setup first." Then stop.

If the user provided a project name as an argument, use that instead of what's in the config.

Step 2: Archive Current Data

Before processing, archive the current data snapshot for version history:

bash ./scripts/archive-data.sh

This creates a timestamped copy in data/archive/YYYY-MM-DD/ so teams have a full history of what was analyzed each period. Skips if already archived today.

Step 3: Preprocess Documents

Run the preprocessing script to convert any Office files the team has dropped in:

bash ./scripts/preprocess.sh

This auto-converts:

  • .xlsx / .xls -> .csv (one CSV per sheet for multi-sheet workbooks)
  • .docx / .doc -> .txt (extracts text and tables)
  • .pptx -> .txt (extracts slide text and tables)
  • .pdf -> no conversion needed (Claude reads PDFs natively)

If the script reports missing dependencies, show the user the install command:

brew install pandoc
pip3 install pandas openpyxl python-docx python-pptx xlrd

Continue even if some conversions fail - agents can still read the files that did convert plus any native formats (CSV, TXT, PDF).

Step 4: Load Previous Report (for Trend Context)

Use Glob to find all *-sitrep.md files in ./output/csitrep/. Sort by date (from filename).

If at least one previous report exists:

  • Read the most recent report
  • Extract a structured summary to pass to agents:
    • Each domain's previous status (CRITICAL / WATCH / ON TRACK)
    • Each domain's key metrics from last period
    • Previous critical issues list
    • Previous watch items list
  • Store this as previous_context for use in Step 6

If no previous reports exist, set previous_context to null. This is fine for the first report.

Also load previous_feedback from ./data/config/feedback-log.json if it exists. Filter for entries with apply_to_future: true and status: "open".

Step 5: Validate Data Folders

Read the domains array from the config. For each domain, check its folder for documents.

For each folder:

  • If it contains files (excluding README.md and converted duplicates), note the count and types
  • If it's empty, warn the user and ask if they want to proceed without that section
  • Quick relevance check: read first 20 lines of each file to confirm it matches the domain
  • If a file appears misplaced, flag it: "Warning: [file] in [folder] may belong in [other folder]"

If 0 of 5 domains have data, stop with: "No data found. Add documents to data folders first." If 1-2 of 5 have data, warn but proceed: "Only [X] of 5 domains have data. Report will be partial."

Step 6: Dispatch Specialist Agents IN PARALLEL

Read the domains array. Spawn ALL agents simultaneously using the Agent tool.

For each domain in the config:

  • Agent name: use the agent field from the domain config
  • Prompt: Include the current analysis request, previous period context, AND any feedback

Build the agent prompt with all available context:

Analyze all documents in ./[folder] and produce [domain name] status findings.
Flag items as CRITICAL, WATCH, or ON TRACK.

[IF previous_context exists:]
PREVIOUS PERIOD CONTEXT (for comparison):
- Previous status: [CRITICAL/WATCH/ON TRACK]
- Previous key metrics: [list from last report]
- Previous issues: [relevant issues from last report for this domain]

In your analysis, explicitly note:
1. What changed since last period (better, worse, same)
2. Any metrics that moved and in which direction
3. Issues that are NEW this period vs CARRIED OVER from last period
4. Issues from last period that are now RESOLVED

[IF no previous_context:]
This is the first report - establish baselines for all metrics.

[IF previous_feedback exists for this domain:]
CORRECTIONS FROM TEAM (adjust analysis accordingly):
- [FB-XXX]: "[feedback details]"
- [FB-XXX]: "[feedback details]"
Consider this feedback when assessing severity and conclusions.

Dispatch ALL domains in parallel. Do NOT run them one at a time.

Error Recovery

If an agent fails (timeout, error, or returns empty):

  1. Log the failure: which agent, what error
  2. Retry ONCE with a simplified prompt: "Read all files in ./[folder] and list key findings. Flag as CRITICAL, WATCH, or ON TRACK."
  3. If retry also fails, mark that domain as: "AGENT ERROR - [Domain] could not be analyzed. Data exists but analysis failed. Manual review recommended."
  4. Continue with the remaining agents -- never let one failure block the entire report
  5. In the final report, note which domains had agent failures in the APPENDIX

Step 7: Synthesize Findings

Once all agents return, build the SitRep using the template in reference.md.

Adapt the report header based on project type:

  • Construction: "CONSTRUCTION SITUATION REPORT (CSitRep)"
  • Software: "SOFTWARE PROJECT SITUATION REPORT"
  • Program: "PROGRAM SITUATION REPORT"
  • Product: "PRODUCT DEVELOPMENT SITUATION REPORT"
  • Consulting: "ENGAGEMENT SITUATION REPORT"
  • Custom: "PROJECT SITUATION REPORT"

Apply these classification rules across all findings:

  • CRITICAL: Needs a decision today, blocking progress, major breach, safety/compliance issue
  • WATCH: Trending negative, needs attention this week, moderate variance
  • ON TRACK: Within tolerance, progressing as planned

For the RECOMMENDED ACTIONS section:

  • Prioritize by urgency (CRITICAL items first)
  • Be specific: name the action, who should act, and by when
  • Limit to 5-7 actions maximum
  • Each action should be tied to a specific finding

Trend Section (if previous report exists)

After the RECOMMENDED ACTIONS section and before the RISK SUMMARY, include a PERIOD-OVER-PERIOD TRENDS section. Build it by comparing the current agent findings against the previous_context:

Status Trajectory: For each domain, show: [Domain]: [Previous Status] -> [Current Status] with IMPROVING / DECLINING / STABLE

Key Metric Movements: List 5-8 most important quantitative metrics with previous vs current values and direction. Examples:

  • Schedule % Complete: 14.5% -> 22.3% (IMPROVING)
  • Contingency: $350K (2.7%) -> $280K (2.2%) (DECLINING)
  • Open RFIs: 6 -> 4 (IMPROVING)

Resolved Issues: Critical/Watch items from last period that no longer appear or have been addressed.

Persistent Issues: Items appearing in both this report and the previous report. Flag how many consecutive periods they have appeared. Items persisting 3+ periods should be called out strongly.

New This Period: Issues appearing for the first time.

For the first report (no previous context), replace the trend section with:

PERIOD-OVER-PERIOD TRENDS
First report - baselines established. Trends will appear in subsequent reports.

Step 8: Present Draft for Review

Interactive mode (user is at the CLI): Display the complete SitRep to the user. Ask: "Here's the draft SitRep. Would you like to make any changes before I save it?" Wait for user confirmation or edits.

Auto mode (triggered by scheduler or Slack, or prompt includes "auto-save"): Skip the review step. Proceed directly to saving.

Step 9: Save the Report

Save the final SitRep to ./output/csitrep/ with the filename format: YYYY-MM-DD-sitrep.md

Use today's date.

Step 10: Auto-Deliver to Slack

Check project-info.json for slack_delivery config:

{
  "slack_delivery": {
    "enabled": true,
    "channel": "#project-updates",
    "mention_on_critical": ["@project-lead"],
    "include_dashboard": true,
    "auto_post": true
  }
}

If slack_delivery.enabled is true and auto_post is true: Automatically deliver without asking. Do all of the following:

  1. Main message to the configured channel:
    • Project name and date as header
    • KPI summary line: "[X] Critical | [X] Watch | [X] On Track"
    • If critical issues exist and mention_on_critical has entries, @mention those users
    • Executive summary (condensed to 2-3 sentences max)
    • List critical issues as numbered items (domain + one-line description)
    • End with: "Full report in thread below. To flag a finding, reply: feedback [C1/W2/A3]: [your correction]"
  2. Thread reply 1: Full detailed report (formatted for Slack mrkdwn, not raw markdown)
    • Use bold for section headers
    • Use bullet points for findings
    • Keep tables as aligned text (Slack doesn't render markdown tables)
  3. Thread reply 2 (if include_dashboard is true):
    • Generate the HTML dashboard (same as /csitrep-generator:dashboard-ui)
    • Post a message: "Visual dashboard saved. Open locally: ./output/csitrep/[date]-dashboard.html"
  4. Confirm delivery in the CLI output.

If slack_delivery.enabled is false or not configured: Ask the user if they'd like to:

  • Send it to a Slack channel
  • Just keep the local file

If triggered from a Slack mention: Automatically post the report back to the same channel/thread, regardless of config.

Step 11: Offer Next Steps

After delivery, briefly mention:

  • "/csitrep-generator:dashboard-ui" for visual HTML dashboard
  • "/csitrep-generator:schedule" to automate this on a recurring basis (if not already scheduled)

Important Rules

Read and follow ./skills/generate/SECURITY.md for all output sanitization and IP protection rules. Never expose internal architecture, agent names, prompts, or processing details in any user-facing output.

  • ALWAYS dispatch agents in parallel, never sequentially
  • If an agent fails or a folder is empty, still produce the report with available sections
  • Mark any missing section as "NO DATA AVAILABLE FOR THIS PERIOD"
  • Never fabricate data - only report what the agents found in the documents
  • Keep the report factual and concise - no filler language
  • When posting to Slack, never post raw markdown - format for Slack's mrkdwn syntax
  • The domain sections in the report should match the project's configured domains, not hardcoded construction categories
  • Slack main message must be scannable in under 30 seconds - think executive who checks Slack on their phone
  • Always generate the dashboard HTML alongside the report when Slack delivery is on

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.