Indexion Identity

by trkbt107ad5ad35a668No license2 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 2 weeks ago

Detect and review name/content drift in code using `indexion identity audit`, then plan verified renames, moves, folder changes, or splits.

Instructions onlySoftware Development
AI-generated overview

Reviews name/content drift in code using indexion identity audit, then plans verified renames, moves, or splits.

What it does
This skill guides an agent through an identity audit workflow that checks whether function, file, and folder names still match their contents. It runs the indexion identity audit command, optionally producing a JSON report, and treats each row as a review candidate rather than proof. The agent then verifies candidates with graph, semantic grep, and text search commands before choosing the smallest confirmed operation, such as renaming a symbol, file, or folder, moving a file, or splitting a file. After changes it re-runs formatting, tests, and the audit.
When to use it
Use it when checking whether function, file, or folder names still match their contents. It fits code review or refactoring sessions where naming drift, overbroad content, or insufficient content needs verification before edits. It is also useful when planning renames, moves, folder changes, or file splits based on audit findings.
Requirements
Requires the indexion CLI with the identity audit, doc graph, and grep subcommands, plus ripgrep (rg) and the moon build tool for moon info, moon fmt, and moon test. It ships no scripts; it is instructions only.

Identity Audit Workflow

Use this skill when checking whether function, file, or folder names still match their contents.

The CLI scans files, folders, and graph-level declaration symbols. It does not treat every local variable, parameter, or field as an independent naming target; those can still influence the containing file summary. File names are evaluated with parent scope, and declaration-heavy files should normally be read as evidence-thin until follow-up inspection proves an actual rename or split.

Pipeline

  1. Run the mechanical scan:

    bash
    indexion identity audit .

    For a machine-readable queue:

    bash
    indexion identity audit --format=json --output=.indexion/cache/identity/report.json .
  2. Treat each row as a review candidate, not proof. Compare:

    • name: the scoped name inferred by the identity package
    • expected_summary: what the path/name/scope predicts
    • actual_summary: graph-derived declarations, docs, module notes, and path terms
    • assessment: whether this is actual drift, overbroad content, or insufficient content
    • recommendation: first operation to verify
  3. Verify before editing:

    bash
    indexion doc graph --format=text <path>indexion grep --semantic=name:<symbol> .rg "<name-or-term>" <path>
  4. Choose the smallest confirmed operation:

    • Treat insufficient-content as an evidence problem, not a naming-drift proof. Inspect whether the file is intentionally declarative/thin, unsupported by the graph extractor, empty, or missing doc/declaration material before renaming.
    • Rename a symbol when its implementation is cohesive but the name is stale.
    • Rename a file when its declarations are cohesive but the file name is stale.
    • Rename a folder when contained files share a clearer parent concept.
    • Move a file when it fits an existing folder better than its current one.
    • Split a file when candidates show multiple dominant responsibilities.
  5. After changes:

    bash
    moon info && moon fmtmoon testindexion identity audit .

The audit is designed to surface review work. Do not maximize the score mechanically; verify the actual code ownership and references first.

Source and attribution

Source:trkbt10/indexion-skillsinskills/indexion-identityat commit7ad5ad3

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

Indexion Identity Agent Skill | SourceWeft