Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

repo-native-refactor

Latest version: vgit:5195b228bb850ef4dd9200c93f9e3268c0551206

Overview

Last scanned
1 Dec 2026
Agent skill Publisher: CEdi-byte
0 Stars
0 Forks
1 Versions
TypeScript Repo language

Scan summary

repo-native-refactor was last scanned on 1 Dec 2026 at commit 5195b228. Risk score 1 of 100 (low). No malicious behavior was detected.

  • Releases: Single version.
  • Findings: 1 rule fired in commit 5195b228 (1 low). The score describes this commit only.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
5195b228 1 rule fired

Rules fired in 5195b228: 1

Findings

1 Low

Findings for commit 5195b228. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Encoded content in a skill

The skill's text or bundled scripts contain encoded content, such as a long base64 or hex string, a dense run of hex escapes, or invisible Unicode tag characters that can carry hidden instructions. Skills rarely need these. On its own this is not evidence of malicious behavior.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 5195b228; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Repo-native refactor

When to Use

  • Use when the user asks to review a diff, branch, or PR for correctness, contract breaks, or operational risk.
  • Use when the user authorizes bounded cleanup before opening a PR or asks to consolidate duplicated policy with shared ownership.
  • Use for repository rehabilitation only when the user explicitly requests work across multiple domains.
  • Establish review-only, edit, or combined authority before choosing the operating mode.

Produce the smallest coherent change that belongs naturally in the target repository.

Prioritize in order:

  1. Correctness and security: prevent regressions, avoid new security vulnerabilities, handle boundary conditions.
  2. Semantic integrity: preserve existing invariants, state transitions, validation, and error boundaries.
  3. Contracts stay as declared: the rule lives in references/shared-contracts.md §1. Preserve the authorized target contract; otherwise keep exact declared types. Internal helpers are fine when exposed contracts stay exact.
  4. Repository conformity: match surrounding naming, domain conventions, and architectural precedents.
  5. Economy and simplicity: minimal intervention. Delete dead weight, avoid premature abstractions.

This is a post-implementation audit and small cleanup skill. It is not permission to redesign the repository. Establish a concrete consequence such as inconsistent behavior, duplicated policy that must change together, unclear ownership, avoidable resource cost, or a demonstrated maintenance obstacle. Leave healthy code unchanged when the benefit is speculative.


Minimal intervention and evidence gate

  • Evidence-based intervention: refactor only with concrete evidence of divergence, defect, or operational risk. If greenfield code or an additive diff is already minimal, idiomatic, and passing, leave it. A pattern you recognize is a candidate finding, not a reason to change anything.
  • Semantic DRY (Cost-benefit consolidation): merge duplicated logic only when the copies share an owner, an invariant, and a reason to change, and only if merging saves more than it costs. Leave similar-looking checks in separate domains alone, and keep small local duplication when merging would obscure ownership.
  • Contract boundary protection: preserve public interfaces, parameter names, and return types, except where the task clearly authorizes the change. During cleanup, keep the authorized target contract; don't revert to the old one.

Operating modes

  • Review vs. Refactor Authority: first establish the outcome: findings, edits, or both. Review-only means inspection and verification, no source edits. Authorized cleanup allows bounded corrections; don't ask approval again for routine choices.
  • Change-set cleanup: for a working tree, branch, commit range, feature, or bounded checkpoint. Work diff-first; read surrounding code only to understand ownership, contracts, and precedent.
  • Repository rehabilitation: only when explicitly requested across multiple domains. Read repository rehabilitation, build a short profile, and work in batches you can verify independently.

Evidence hierarchy

Use the evidence hierarchy to guide investigation, not to resolve material contradictions automatically. Reconcile conflicting requirements, documentation, callers, and tests before changing the affected contract. When repository patterns conflict, resolve in order:

  1. User requirements and explicitly authorized scope.
  2. Documented architecture and repository guidelines.
  3. Observable public contracts and persisted schemas.
  4. Healthy sibling code within the same domain and runtime boundary.
  5. Relevant tests, schemas, callers, and dependencies.
  6. Dominant local conventions.
  7. Language and runtime idioms.
  8. Conservative, idiomatic defaults.

Never treat a temporary workaround, buggy sibling, or accidental pattern as precedent.


Workflow

1. Establish scope and baseline

Before mutating code, identify:

  • Comparison base and working-tree state.
  • In-scope files vs. untouched user modifications.
  • Existing verification commands and their current pass/fail status.

Differentiate pre-existing failures from regressions introduced by this pass. Never claim a check ran when it did not.

2. Establish intent, ownership, and preservation

Refactoring is behavior-preserving by default. Protect:

  • Public APIs, serializations, and database schemas.
  • Concurrency guarantees, idempotency, timeouts, and retries.
  • Resource lifecycles (file handles, sockets, database transactions).

If a bug requires an observable change, classify and report it as an intentional behavioral correction rather than routine cleanup.

3. Inventory findings before rewriting

Inspect the authorized scope for:

  • Validation or control flow whose structure obscures an invariant, creates inconsistent behavior, or duplicates the same owned policy.
  • Misplaced domain ownership or leaky abstractions.
  • Leaked unmanaged resources or missing atomic flush/sync calls.
  • Unnecessary boilerplate, dead code, or commentary narrating syntax.

Read finding taxonomy for complex cases. Establish the smallest adequate correction before editing.

4. Classify risk and refactor

Risk bands:

  • R0 - Mechanical: Established formatter or locally provable cleanup.
  • R1 - Low Structural: Local residue with straightforward test verification.
  • R2 - Contextual Structural: Renames, control-flow changes, extraction of shared predicates.
  • R3 - Semantic: Errors, fallbacks, retries, serialization, transactions, async, or lifecycles.
  • R4 - Critical Boundary: Auth, permissions, crypto, data migrations, persistence durability.

Read semantic risk for R2+ changes. Never mass-rewrite R3 or R4 behavior without explicit instructions and verified tests.

5. Audit code prose
  • When prose is in scope, treat comments, docstrings, CLI output, and error messages as distinct surfaces. Read repository prose for that work.
  • Delete comments that merely narrate obvious syntax or execution order.
  • Preserve and tighten comments that explain non-obvious invariants, protocol quirks, rounding, or hardware workarounds.
  • Never invent fictitious tickets, PR references, or production incident IDs.
6. Verify and review
  • Run the smallest repository-native checks that meaningfully exercise the change. For R3/R4 changes or weak test suites, read error and reliability boundaries and testing integrity.
  • Prioritize diff reviewability and coherence over raw line minimization; do not compress code into unreadable one-liners.
  • Distinguish intentional behavioral corrections from mechanical cleanup.
  • Review the final diff like a skeptical maintainer. Every line needs a reason. No contract changed without permission, no test got weaker, no dependency moved for nothing.

Reference routing

Read supporting references only when the corresponding trigger occurs:

  • references/shared-contracts.md: Canonical contract + evidence hierarchy. Read when touching any public interface or reconciling conflicts.
  • references/refactor-examples.md: R0–R4 good/bad diffs. Read before rewriting a candidate finding.
  • references/finding-taxonomy.md: Read for complex multi-smell diffs to name owner + consequence.
  • references/semantic-risk.md: Read for R2+ changes, justification gate, and stop conditions.
  • references/repository-prose.md: Read when editing comments, docstrings, CLI output, or error messages.
  • references/error-reliability.md + references/testing-integrity.md: Read for R3/R4 or weak test suites.
  • references/deterministic-tooling.md: Read before introducing new scanners or bulk-codemod tools.
  • references/repository-rehabilitation.md: Read only for explicitly requested multi-domain rehabilitation, in verifiable batches.

Hard stops

Do not force a refactor where intent, ownership, public-contract consequences, migration semantics, or concurrency behavior cannot be established. Do not guess between conflicting architectural patterns without evidence.


Completion Report

Scale the completion report to the change. Omit empty sections. Format completion concisely:

Result

Use one: Verified, Verified with caveats, Needs review, or Failed verification.

For review-only requests, an empty findings list is a complete result, not an embarrassing one. Never manufacture findings to fill a report: each reported finding needs a producer, a consumer, and an observed consequence, or it is not reported.

Changed

Summarize material corrections by file and function.

Preserved intentionally

Note specific patterns or contracts deliberately retained to avoid breaking downstream consumers.

Verification

List exact verification commands executed and their outcomes.

Residual uncertainty

Document unresolved limitations or high-risk boundaries intentionally deferred.


Examples

Review without editing
Use repo-native-refactor to review this branch against main for public-contract
breaks and retry failures. Do not edit source files. Report only findings with
a concrete producer, consumer, and observable consequence.

Inspect the comparison base and relevant callers, run proportionate verification, and report evidence-backed findings. An empty findings list is a valid result.

Consolidate one owned policy
Use repo-native-refactor to consolidate the duplicated eligibility checks owned
by this billing module. Preserve the current accepted inputs, error types, and
return values. Leave similar checks in other domains alone and run the module's tests.

Confirm that the copies share an owner, invariant, and reason to change before extracting anything. Keep the correction bounded and verify the final behavior.

Limitations

  • Review requires an identifiable comparison base and enough repository evidence to establish contracts and ownership.
  • Similar syntax alone does not establish shared policy or justify consolidation.
  • The skill cannot establish migration or concurrency safety without relevant requirements and verification; unresolved material uncertainty is a hard stop.
  • Local checks and self-review do not establish independent review or universal reliability.

Security & Safety Notes

Review-only mode permits inspection and verification without source edits. The authorized cleanup mode can modify source files, so the declared risk is critical under this collection's state-modification classification. Keep edits within the user's authorized scope, preserve unrelated user changes, and apply the R3/R4 verification and stop conditions before changing sensitive behavior. Cleanup authority does not authorize publishing, deploying, or changing external systems.


When NOT to Use

  • Clean greenfield code: Do not refactor newly written code that is already minimal, idiomatic, and passing all tests.
  • Speculative cleanup: If you cannot state the domain owner and the concrete maintenance consequence in a single sentence, leave the code unmodified.
  • Risk classification: When uncertain between risk bands (such as R2 structural vs. R3 semantic), default conservatively to the higher risk band and require explicit justification.

Source & License

Adapted from Natchannnn/repository-engineering-skills. The original MIT copyright notice and license are retained in references/LICENSE.md. Collection adaptations add metadata, explicit triggers, interaction examples, limitations, and safety notes; the core workflow and supporting reference instructions are retained.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • GitHub CEdi-byte/claude-skills/repo-native-refactor

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229