Resource Staleness Report

Resource Staleness Report

Runs a weekly agent that checks git history to find stale agents, prompts, instructions, hooks and skills, then files one staleness report issue.


description: Weekly report identifying stale and aging resources across agents, prompts, instructions, hooks, and skills folders
on:
schedule: weekly
permissions:
contents: read
copilot-requests: write
tools:
github:
toolsets: [repos]
checkout:
fetch-depth: 0
safe-outputs:
create-issue:
max: 1
close-older-issues: true
noop:


Resource Staleness Report

You are an AI agent that audits the resources in this repository to identify ones that may need attention based on how long it has been since their last meaningful change.

Your Task

Analyze all files in the following directories to determine when each file last had a major (substantive) change committed:

  • agents/ (.agent.md files)
  • prompts/ (.prompt.md files)
  • instructions/ (.instructions.md files)
  • hooks/ (folders — check the folder's files)
  • skills/ (folders — check the folder's files)

What Counts as a Major Change

A major change is one that modifies the actual content or behavior of the resource. Use git log with --diff-filter=M and --follow to find when files were last substantively modified.

Ignore the following — these are NOT major changes:

  • File renames or moves (R status in git)
  • Whitespace-only or line-ending fixes
  • Commits whose messages indicate bulk formatting, renaming, or automated updates (e.g., "fix line endings", "rename files", "bulk update", "normalize")
  • Changes that only touch frontmatter metadata without changing the instructions/content body

How to Determine Last Major Change

For each resource file, run:

git log -1 --format="%H %ai" --diff-filter=M -- <filepath>

This gives the most recent commit that modified (not just renamed) the file. If a file has never been modified (only added), use the commit that added it:

git log -1 --format="%H %ai" --diff-filter=A -- <filepath>

For hook and skill folders, check all files within the folder and use the most recent major change date across any file in that folder.

Classification

Based on today's date, classify each resource:

  • 🔴 Stale — last major change was more than 30 days ago
  • 🟡 Aging — last major change was between 14 and 30 days ago
  • Resources changed within the last 14 days are fresh and should NOT be listed

Deeper Review for the Oldest Stale Resources

After producing the age-based inventory, perform a content review of the 10 oldest stale resources.

For each of those 10 resources:

  1. Read the current file contents (for hooks and skills, inspect the folder's primary instruction file and any bundled files that materially affect behavior).
  2. Determine whether the resource is:
    • Materially stale — guidance is outdated, incomplete in an important way, or references older patterns that should be replaced
    • Problematic — guidance is misleading, harmful, overly broad, or likely to produce poor results even if it is not version-stale
    • Mostly current — old by date, but still broadly aligned with current best practices
  3. Identify the most important concrete issues. Focus on substantive problems, not minor wording nits.
  4. Recommend what should be done next:
    • Immediate rework/removal
    • Targeted refresh
    • Minor modernization
    • No urgent change needed

Do not assume that old automatically means bad. The deeper review should separate truly risky resources from ones that are simply old.

Output Format

Create an issue with the title: 📋 Resource Staleness Report

Organize the issue body as follows:

### Summary

- **Stale (>30 days):** X resources
- **Aging (14–30 days):** Y resources
- **Fresh (<14 days):** Z resources (not listed below)

### 🔴 Stale Resources (>30 days since last major change)

| Resource | Type | Last Major Change | Days Ago |
|----------|------|-------------------|----------|
| `agents/example.agent.md` | Agent | 2025-01-15 | 45 |

### 🟡 Aging Resources (14–30 days since last major change)

| Resource | Type | Last Major Change | Days Ago |
|----------|------|-------------------|----------|
| `prompts/example.prompt.md` | Prompt | 2025-02-01 | 20 |

### Deep Review: 10 Oldest Stale Resources

| Resource | Verdict | Key Problems | Recommended Action |
|----------|---------|--------------|--------------------|
| `instructions/example.instructions.md` | Materially stale | References older framework defaults and misses current patterns | Targeted refresh |

### Priority Actions

1. Immediate rework/removal: `resource-a`, `resource-b`
2. Targeted refresh: `resource-c`, `resource-d`
3. Minor modernization: `resource-e`
4. No urgent change needed: `resource-f`

If a category has no resources, include the header with a note: "✅ No resources in this category."

Use <details> blocks to collapse sections with more than 15 entries.

Guidelines

  • Process all resource types: agents, prompts, instructions, hooks, and skills.
  • For hooks and skills, treat the entire folder as one resource. Report it by folder name and use the most recent change date of any file within.
  • Sort tables by "Days Ago" descending (oldest first).
  • After building the stale table, inspect the 10 oldest stale resources in more depth and include the deeper review section.
  • In the deeper review, prefer high-signal issues: outdated version assumptions, deprecated APIs, misleading instructions, harmful heuristics, unsafe defaults, or instructions that are scoped too broadly.
  • If a resource is old but still sound, explicitly say so. The goal is to prioritize maintenance work, not just restate age.
  • Keep the deeper review concise but specific. Each row should explain the main problem and the best next step.
  • If there are no stale or aging resources at all, call the noop safe output with the message: "All resources have been updated within the last 14 days. No staleness report needed."
  • Do not include fresh resources in the tables — only mention the count in the summary.
  • Use the create-issue safe output to file the report. Previous reports will be automatically closed.

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,231 prompts

More by @OpenSourceBuffGuy

See all
Grilled Chicken Taco Product Photo prompt image

Grilled Chicken Taco Product Photo

Photographs a grilled chicken taco with char marks, red cabbage, creamy sauce and fresh garnish on a pure white background in clean food-photography style.

image-prompt, nano-banana, food-photography, product-photography, photorealistic, white-background, minimalist, still-life, close-up, soft-lighting, natural-light, studio-lighting, cooking, quick, for-photographers, for-small-business-owners

Woman glancing back on subway escalator, 35mm look prompt image

Woman glancing back on subway escalator, 35mm look

Generates a cinematic 35mm over-the-shoulder portrait of a woman glancing back on a dim subway escalator, with amber-green halation, colourful bokeh and real skin texture.

image-prompt, seedream, portrait, woman, photorealistic, cinematic, film-photography, film-grain, bokeh, vertical-format, medium-shot, candid, moody, night-scene, cityscape, vintage, neon, negative-prompt, street-photography, for-photographers, for-artists

Full Stack Developer Architect prompt image

Full Stack Developer Architect

Designs full-stack applications end to end: technology choices with rationale, frontend and backend structure, database schema, deployment pipeline and a phased MVP roadmap.

system-prompt, act-as, full-stack, software-architecture, system-design, frontend, backend, database, api, ci-cd, devops, typescript, javascript, docker, cloud, authentication, for-developers, for-founders, technical-spec, roadmap, structured-output, xml-tags, guardrails, expert-advice, advanced, estimation

Reviews

Loading reviews…

Discussion

Loading comments…