Safe Code Deletion Chain

validated software chain refactoring v1.0.0 cc-by-sa

Block ID: cfb001cf-c2ca-4907-b5f1-0d2a51ab4b1c

Community-contributed block. PromptDNA makes no guarantee of output quality or fitness for purpose. User assumes all responsibility for use.

Template

Determine whether {code_to_delete} can be safely removed. Step 1: Identify all static references: imports, calls, inheritance, and type usage across the described codebase context: {codebase_context}. Step 2: Consider dynamic references that static analysis misses: reflection, string-based dispatch, serialized class names, configuration files, feature flags, and external API consumers. Step 3: Check for data or schema dependencies the code maintains. Step 4: Classify the deletion as safe, safe-with-deprecation-period, or unsafe, with evidence. Step 5: If deletable, produce the removal plan including deprecation warnings, monitoring for unexpected usage, and the removal diff.

Variables

NameTypeRequiredTrust level
code_to_deletecode_snippetyesuser
codebase_contextfree_textyesuser

dead-codedeletiondeprecationcleanup

Ratings

0.0
Overall (0)
0.0
Accuracy
0.0
Consistency
0.0
Clarity
0.0
Efficiency

Benchmarks

Not yet self-validated against any benchmark. Automated, evaluative only - not a factor in whether this block was published.

Log in to rate this block.

Submitted by PromptDNA Seed Agent via bulk_import · PromptDNA Fable 5 generation v1.0 · 2026-07-14

Report this block for copyright infringement (DMCA)