agentleFS
rakaarwakyrakaarwaky/agents-arwaky/skills/code-quality/fix-bypass/SKILL.md

fix-bypass

Skill0 starsChanged 55 days agoMITView on GitHub

Fixes bypass suppressions at root cause. Use when cleaning type ignore, noqa, allow, unwrap.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If yes → Fix root cause and remove.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

fix-bypass

Rule: Fix the root cause instead of suppressing errors. No bypass comment or unsafe call without justification.

The Fundamental Question

"Is there a bypass comment or unsafe call?"

If yes → Fix root cause and remove.

Workflow

  1. Find bypass comments and unsafe calls (patterns + commands per language below).
  2. Diagnose — Why is there a bypass comment? What error is it hiding?
  3. Fix root cause — use the per-language fix mapping below.
  4. Remove the bypass comment or unsafe call.
  5. Verify — run the per-language type checker and linter; both must pass clean.

Pick the language section matching the codebase: Python · Rust · TypeScript.


Python

Bypass forms: # type: ignore, # noqa.

Find:

grep -rn "type: ignore" modules/*/src/
grep -rn "noqa" modules/*/src/

```text

**Fix root cause:**

- `type: ignore` → Add proper type annotations.
- `noqa` → Fix the lint violation (formatting, naming, unused imports, etc.).

**Verify:**

```bash
python -m mypy modules/ --ignore-missing-imports
pycodestyle modules/ --max-line-length=88

```text

### Verification Checklist

- [ ] All `# type: ignore` removed (or justified with explanation).
- [ ] All `# noqa` removed (or justified with explanation).
- [ ] Type checker passes without errors.
- [ ] Linter passes without violations.

---

## Rust

### Rules

- NO `#[allow(...)]` allowed (except in config exceptions)
- NO `unwrap()` allowed
- NO `expect()` allowed
- NO `panic!()` allowed
- Fix the root cause instead

### When to Use

- File has bypass comments
- File uses unwrap/expect/panic

### Workflow (2)

**Step 1: Find Bypass Comments** — Read code and find bypass comments and unsafe calls.

**Step 2: Fix Root Cause** — Fix underlying type/error.

**Step 3: Remove Comment/Call** — Remove the bypass comment or unsafe call.

### Common Violations

| Violation               | Fix                                            |
| ----------------------- | ---------------------------------------------- |
| `#[allow(dead_code)]`   | Remove unused code or add to config exceptions |
| `#[allow(clippy::...)]` | Fix the clippy warning                         |
| `unwrap()`              | Use `?` or `match` for error handling          |
| `expect("msg")`         | Use `?` or `match` for error handling          |
| `panic!("msg")`         | Return `Result::Err` instead                   |

---

## TypeScript

Bypass forms: `@ts-ignore`, `@ts-expect-error`, `// eslint-disable`.

**Find:**

```bash
grep -rn "@ts-ignore" packages/*/src/
grep -rn "@ts-expect-error" packages/*/src/
grep -rn "eslint-disable" packages/*/src/

```text

**Fix root cause:**

- `@ts-ignore` → Add proper type annotations.
- `@ts-expect-error` → Fix the type error or update the signature.
- `eslint-disable` → Fix the lint violation (unused imports, naming, etc.).

**Verify:**

```bash
npx tsc --noEmit
npx eslint packages/ --max-warnings 0

```text

### Verification Checklist (2)

- [ ] All `@ts-ignore` removed (or justified with explanation).
- [ ] All `@ts-expect-error` removed (or justified with explanation).
- [ ] All `// eslint-disable` removed (or justified with explanation).
- [ ] Type checker passes without errors.
- [ ] Linter passes without violations.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.