reorganize — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited reorganize (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.
Restructure the specified code files: rearrange module layout, reorder logically, extract shared logic, remove redundancy, add section separators and comments. Must not change any functionality or logic.
$ARGUMENTS specifies the target:
/reorganize src/engine.go — reorganize a single file/reorganize src/core/ — reorganize all code files in the directory/reorganize diff — reorganize all uncommitted files (via git diff --name-only --diff-filter=d HEAD)If no argument is provided, prompt the user to specify a target.
Resolve the file list from $ARGUMENTS. For directories, recursively collect all code files (excluding vendor, node_modules, generated files, etc.). For diff, collect all uncommitted modified files (staged + unstaged).
Output:
REORGANIZE
Target: {file/dir/diff}
Files: {N} files
{file list}Process files one at a time. Complete each file before moving to the next.
#### 2.1 Read and Analyze Current Structure
Read the entire file and analyze:
#### 2.2 Decide Whether to Split the File
Split into multiple files when the file couples multiple clearly distinct functional modules, making it hard to read and maintain:
When splitting:
engine.go -> engine.go + engine_strategies.go + engine_signals.go)If the file is already focused and coherent, do not split.
After splitting, apply steps 2.3-2.7 to each resulting file.
Import fixing: After splitting, scan the project for files that import or reference the original file. If the split moved symbols to new files, update the affected imports. This may require modifying files outside the original target scope — this is the only case where that is allowed.
#### 2.3 Restructure File Layout
Organize code blocks in a logical order based on the file's actual content. Common reference (adapt as needed):
- package/module declaration, imports
- constants, variables
- type definitions
- constructors
- core business methods
- helper / utility methodsCore principle: a reader scanning top-to-bottom should naturally understand the file's structure and business flow. Keep related code together; high-level logic before implementation details.
Separate functional sections with divider comments. First check if the project already uses a divider style (scan existing files for patterns like // ---, // ===, #region, etc.) and adopt that style. If no existing convention is found, use a simple comment divider appropriate for the language.
#### 2.4 Extract Reusable Logic
Check for duplicate code patterns within the file being processed (do not modify files outside the target scope):
#### 2.5 Remove Redundancy
// TODO, placeholder // xxx)#### 2.6 Add Comments
#### 2.7 Verify
Run compilation and test checks on modified files. Detect build/test commands from the project:
go build ./... then go test ./...cargo check then cargo testtsc --noEmit then npm testpython -m py_compile then pytestIf any check fails, fix the issue and re-check. Max 3 attempts.
After each file is processed, briefly report what was done and the build/test result. After all files, output summary:
REORGANIZE COMPLETE
Files processed: {N}
Files split: {list, or "none"}
Build: {PASS / FAIL}
Tests: {PASS / FAIL / no tests found}~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.