document-changes-553cda — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited document-changes-553cda (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generate a structured markdown report documenting codebase changes from the current working session. The report captures files changed, commit history, and a human-readable summary suitable for team reviews, handoff documentation, or personal records.
$ARGUMENTS — Optional scope or description for the report (e.g., "auth refactor", "add OAuth2 support"). Used to name the output file and populate the report's scope field. If not provided, scope is inferred from commit messages or changed file paths.Execute these 4 steps in order. Stop early if Step 1 or Step 2 determines there is nothing to report.
Verify the current directory is inside a git repository:
git rev-parse --is-inside-work-treefalse, stop and report: "Not inside a git repository. This skill requires git to gather change data."Collect all change data by running these git commands. If any individual command fails, continue with the data that is available.
#### 2.1 Repository Metadata
git branch --show-currentgit config user.namegit remote get-url origin 2>/dev/nulldate "+%Y-%m-%d %H:%M %Z"#### 2.2 Uncommitted Changes
git status --porcelaingit diff --statgit diff --name-status#### 2.3 Staged Changes
git diff --cached --statgit diff --cached --name-status#### 2.4 Recent Commits (up to 20)
git log --oneline -20git log --format="%H|%s|%an|%ai" -20#### 2.5 Session Commit Diffs
If there are recent commits (N > 0 from Step 2.4):
git diff --stat HEAD~N..HEADgit diff --name-status HEAD~N..HEADReplace N with the number of recent commits found (capped at 20). If the repo has fewer than N commits, use git diff --stat $(git rev-list --max-parents=0 HEAD)..HEAD instead.
#### 2.6 Combine and Deduplicate
Build a unified list of all affected files from Steps 2.2-2.5, deduplicating entries. For each file, track:
Stop condition: If there are no uncommitted changes (Step 2.2 is empty), no staged changes (Step 2.3 is empty), and no recent commits (Step 2.4 is empty), stop and report: "No changes found in the current repository. Nothing to document."
#### 3.1 Generate Filename Description
Create a short kebab-case description (2-4 words) for the filename:
"auth refactor" -> auth-refactor)api-bug-fixes, add-oauth2-support, ui-component-updates)Build the recommended path: internal/reports/<description>-YYYY-MM-DD.md using today's date.
#### 3.2 Ask User for Report Location
Prompt the user:
Where should the change report be saved?
>
Recommended: internal/reports/<description>-YYYY-MM-DD.md
internal/reports/<description>-YYYY-MM-DD.mdIf user selects "Custom path": Follow up by asking for the full file path.
#### 3.3 Validate Path
.mdmkdir -pBuild the markdown report with the following structure, then write it.
#### Report Template
# Codebase Changes Report
## Metadata
| Field | Value |
|-------|-------|
| **Date** | YYYY-MM-DD |
| **Time** | HH:MM TZ |
| **Branch** | {current branch} |
| **Author** | {git user.name} |
| **Base Commit** | {earliest commit hash before session changes, or N/A} |
| **Latest Commit** | {most recent commit hash, or "uncommitted"} |
| **Repository** | {remote URL, or "local only"} |
**Scope**: {from $ARGUMENTS, or inferred from changes}
**Summary**: {1-2 sentence executive summary of what was done}
## Overview
{High-level stats paragraph}
- **Files affected**: N
- **Lines added**: +N
- **Lines removed**: -N
- **Commits**: N
## Files Changed
| File | Status | Lines | Description |
|------|--------|-------|-------------|
| `path/to/file.ts` | Modified | +12 / -3 | Brief description of changes |
| `path/to/new.ts` | Added | +45 | Brief description |
| `path/to/old.ts` | Deleted | -20 | Brief description |
## Change Details
### Added
- **`path/to/new.ts`** — Description of the new file and its purpose.
### Modified
- **`path/to/file.ts`** — What was changed and why (based on diff context).
### Deleted
- **`path/to/old.ts`** — Why it was removed or what replaced it.
## Git Status
### Staged Changes
{List of staged files from `git diff --cached --name-status`, or "No staged changes."}
### Unstaged Changes
{List of unstaged modifications from `git diff --name-status`, or "No unstaged changes."}
### Untracked Files
{List of untracked files from `git status --porcelain` (lines starting with `??`), or "No untracked files."}
## Session Commits
| Hash | Message | Author | Date |
|------|---------|--------|------|
| `abc1234` | feat: add login flow | Author Name | 2026-02-21 |
{Or "No commits in this session." if no recent commits}#### Writing the Report
mkdir -p {parent_directory}#### Present Summary
After writing the report, present a brief summary of what was generated, then prompt the user:
Report written to {path}.
>
Summary: {1-2 sentence overview} Files documented: N | Commits: N | Lines: +N / -N
>
What would you like to do next?
| Scenario | Action |
|---|---|
| Not a git repo | Stop with clear message (Step 1) |
| No changes found | Stop with clear message (Step 2) |
| Individual git command fails | Continue with available data |
| Write fails | Offer alternative path |
| Cannot determine scope | Use "session-changes" as the fallback description |
--stat output to extract per-file line additions/deletions. If unavailable, omit the Lines column.What this component does: Generates a structured markdown report documenting all codebase changes in the current session, including files changed, commit history, staged/unstaged status, and a human-readable summary. Capabilities needed: Shell execution (git commands), file writing, user interaction (for path selection and next steps). Adaptation guidance: This skill relies heavily on git CLI commands for change detection. The report template and git commands are platform-agnostic. Adapt the user interaction prompts to your platform's dialog system.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.