skill lake repair

Engineering Community

Skill notes

Step 1: Parse Arguments

Extract flags from command input: --clean: Run lake clean before building --max-retries N: Maximum fix iterations (default: 3) --dry-run: Preview fixes without applying --module NAME: Build specific module only

Step 2: Initial Clean (Optional)

If --clean flag is set:

Step 3: Build Loop

Initialize tracking variables: retry_count=0 previous_errors="" (for cycle detection) total_fixes=0

Step 4: Run Build

Attempt to build the project:

Step 5: Parse Build Errors

Extract errors and warnings from build output using regex pattern:

Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Engineering
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
88 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
Author / version / license
@benbrastmckie · no license declared
Token usage
Lean
Setup complexity
Guided setup
External API key
Not required
Operating systems
Unspecified (assume cross-platform)
Runtime requirements
No explicit requirements detected
Detected file/system behavior
  • Read-only
  • Write / modify
  • Shell exec
Network behavior
Local-only
Install commands
None (reference only)

Heads up: Tool permissions are not declared; actual access depends on the runtime.

01
Step 1: Parse Arguments

Extract flags from command input: `--clean`: Run `lake clean` before building `--max-retries N`: Maximum fix iterations (default: 3) `--dry-run`: Preview fixes without applying `--module NAME`: Build specific module only

02
Step 2: Initial Clean (Optional)

If `--clean` flag is set:

03
Step 3: Build Loop

Initialize tracking variables: `retry_count=0` `previous_errors=""` (for cycle detection) `total_fixes=0`

04
Step 4: Run Build

Attempt to build the project:

05
Step 5: Parse Build Errors

Extract errors and warnings from build output using regex pattern:

06
Step 6: Classify Errors

Error Pattern · Fix Type Missing cases · missing_cases Unused variable · unused_variable Unused import · unused_import All other · UNFIXABLE

07
Step 7: Apply Fixes

Missing Cases Fix Add match cases with sorry placeholders. Unused Variable Fix Rename by adding underscore prefix: `{name}` -> `_{name}` Unused Import Fix

08
Step 8: Final Report

After loop exits:

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.