Conversation
Pre-sales scoping plugin for Sales Managers, addressing hackenproof-public#7 (Rust and Solidity only; web/mobile deferred): - Read-only script counts billable nSLOC (comments/blank lines excluded; tests, mocks, scripts, interfaces, examples, generated code and vendored deps separated; Rust #[cfg(test)] modules removed from source) - Ranks security-critical files from weighted indicators on comment-stripped code and suggests a complexity tier - Estimates effort (auditor-days by phase, range, calendar weeks, sensitivity across tiers); rates documented and overridable via --rates - Screens the repository for prompt-injection text, hidden Unicode, and code-execution hazards (build.rs, .cargo/config, foundry ffi, npm lifecycle scripts, IDE auto-run tasks, direnv, in-repo agent configs); HIGH findings stop the workflow - Counts verified identical to cloc on OpenZeppelin and cw-plus; tiers calibrated on seven public repos with zero HIGH false positives Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses #7 — a pre-sales scoping skill for Sales Managers. This first version prices Rust and Solidity only; the web/mobile (API-documentation-based) part of the issue is deferred to a follow-up.
Given a repo URL or local folder (optionally a branch/commit and the client's scope folders), the skill:
#[cfg(test)]modules inside source files are removed from the source count (30–60 % of a file in typical CosmWasm/Anchor repos).references/effort-model.mdand overridable via--rates; they are starting values for the audit team to calibrate.build.rs,.cargo/configoverrides, proc-macro crates,ffi = true, npm lifecycle scripts, VS Code folder-open tasks,.envrc, dev-container hooks,.mcp.json, in-repoCLAUDE.md). Any HIGH finding stops the workflow with an escalation note.The bundled script (
scripts/audit_scope.py, stdlib only, Python 3.8+) is strictly read-only: it never builds, installs, tests or executes anything from the target repo. The skill instructs the agent never tocdinto the clone or load its agent-instruction files.Verification
cloc2.06: identical on OpenZeppelin Contracts (420 files) and CosmWasm cw-plus (87 files). The 5 differing files in coral-xyz/anchor arecloctruncating strings at//inside URLs, i.e.clocundercounts there.override, Solana "instructions", "send tokens").--includefilters exercised end to end.Files
Follow-ups
effort-model.mdrates against real engagements.🤖 Generated with Claude Code