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

schedule

Skill0 starsChanged 8 months agoMITView on GitHub

Set up automated recurring SitRep generation. Use when the user wants reports generated automatically on a schedule (daily, weekly, monthly).

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use consolidate-memory, connect and 5 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.
  • thtskaranSkill

    consolidate-memory

    Reflective pass over your memory files — merge duplicates, fix stale facts, prune the index.

    Also in 3 projects that use this

  • ArogyaReddySkill

    connect

    Connect Claude to any app. Send emails, create issues, post messages, update databases - take real actions across Gmail, Slack, GitHub, Notion, and 1000+ services.

    Also in 3 projects that use this

  • AnthropicSkill

    xlsx

    Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

    Also in 4 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 4 projects that use this

  • MicrosoftSkill

    skill-creator

    Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.

    Also in 6 projects that use this

  • +2 more from anthropics

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Read ./data/config/project-info.json to verify a project is configured.

    line 19
  2. Very specific:

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

    line 20
  3. Distinctive:

    If the user passed an argument, use that.

    line 29
  4. Distinctive:

    Ask the user for their cron expression and validate it.

    line 69
  5. Very specific:

    Check if slack_delivery is already configured in project-info.json.

    line 90
  6. Distinctive:

    If not configured: Ask:

    line 94
  7. Very specific:

    Ask which Slack channel (e.g., #project-updates)

    line 104
  8. Very specific:

    Ask who to @mention on critical issues (e.g., @mike @safety-team)

    line 105
  9. Very specific:

    Update ./data/config/project-info.json with schedule info:

    line 117
  10. Distinctive:

    Always preserve existing crontab entries (never wipe the crontab)

    line 154
  11. Distinctive:

    Use absolute paths in cron entries (cron doesn't inherit PATH)

    line 155
  12. Distinctive:

    Always add logging (>> auto-run.log) so the user can debug

    line 156

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

Auto-Schedule SitRep Generation

Set up automated recurring report generation using the system scheduler.

Step 1: Read Current Config

Read ./data/config/project-info.json to verify a project is configured. If not configured, tell the user to run /csitrep-generator:setup first.

Also check if a schedule already exists:

crontab -l 2>/dev/null | grep "csitrep-generator"

Step 2: Get Schedule Preference

If the user passed an argument, use that. Otherwise ask:

How often should reports be generated automatically?

1. Daily (every weekday at 4:00 PM)
2. Weekly (every Friday at 4:00 PM)
3. Monthly (1st of each month at 9:00 AM)
4. Custom (specify your own cron schedule)
5. Remove existing schedule

Step 3: Determine Paths

Get the absolute paths needed:

PLUGIN_DIR=$(pwd)
CLAUDE_PATH=$(which claude)

Step 4: Create the Cron Job

Build the cron entry based on selection:

Daily (weekdays at 4 PM)

0 16 * * 1-5 cd "[PLUGIN_DIR]" && [CLAUDE_PATH] -p "Run /csitrep-generator:generate and save the report. Do not ask for review - auto-save." --output-format text >> "[PLUGIN_DIR]/output/csitrep/auto-run.log" 2>&1

Weekly (Friday at 4 PM)

0 16 * * 5 cd "[PLUGIN_DIR]" && [CLAUDE_PATH] -p "Run /csitrep-generator:generate and save the report. Do not ask for review - auto-save." --output-format text >> "[PLUGIN_DIR]/output/csitrep/auto-run.log" 2>&1

Monthly (1st at 9 AM)

0 9 1 * * cd "[PLUGIN_DIR]" && [CLAUDE_PATH] -p "Run /csitrep-generator:generate and save the report. Do not ask for review - auto-save." --output-format text >> "[PLUGIN_DIR]/output/csitrep/auto-run.log" 2>&1

Custom

Ask the user for their cron expression and validate it.

Remove

crontab -l 2>/dev/null | grep -v "csitrep-generator" | crontab -

Step 5: Install the Cron Job

# Add to existing crontab without removing other entries
(crontab -l 2>/dev/null | grep -v "csitrep-generator"; echo "[CRON_ENTRY]") | crontab -

Verify installation:

crontab -l | grep "csitrep-generator"

Step 6: Slack Delivery

Check if slack_delivery is already configured in project-info.json.

If already configured: Show the existing config and ask if they want to change it.

If not configured: Ask:

Would you like reports automatically posted to a Slack channel?
This is the recommended way for your team to receive reports.

1. Yes - my team gets reports via Slack (recommended)
2. No - local files only

If yes:

  1. Ask which Slack channel (e.g., #project-updates)
  2. Ask who to @mention on critical issues (e.g., @mike @safety-team)
  3. Save to project-info.json under slack_delivery

The cron command uses auto-save mode, which triggers the auto-delivery in the generate skill:

... && [CLAUDE_PATH] -p "Run /csitrep-generator:generate and auto-save the report." --output-format text ...

Since slack_delivery.auto_post is true in the config, the generate skill handles Slack delivery automatically. No need for a separate Slack command in cron.

Step 7: Save Schedule Config

Update ./data/config/project-info.json with schedule info:

{
  "auto_schedule": {
    "frequency": "weekly",
    "cron": "0 16 * * 5",
    "enabled": true,
    "created": "2026-03-07"
  }
}

Step 8: Confirm

Auto-schedule configured:

  Frequency:     [Weekly / Friday at 4:00 PM]
  Next Run:      [calculated next occurrence]
  Output:        ./output/csitrep/ (auto-saved)
  Slack:         [#channel] (auto-delivered)
  Mentions:      [@user1, @user2] on critical issues
  Dashboard:     HTML generated with each report
  Log:           ./output/csitrep/auto-run.log

How it works:
  - Cron triggers Claude Code on schedule
  - 5 specialist agents analyze your latest documents
  - Report + dashboard are saved locally
  - Summary + full report posted to Slack automatically
  - Your team sees the report without installing anything

To check schedule: crontab -l
To remove: /csitrep-generator:schedule remove

Rules

  • Always preserve existing crontab entries (never wipe the crontab)
  • Use absolute paths in cron entries (cron doesn't inherit PATH)
  • Always add logging (>> auto-run.log) so the user can debug
  • The cron command must include --output-format text to avoid interactive prompts
  • Warn the user that their machine must be running for cron to fire
  • On macOS, mention that the user may need to grant cron Full Disk Access in System Preferences
  • Recommend Slack delivery as the primary team consumption method
  • Make it clear: only the admin needs Claude Code, the team just reads Slack

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.