Skip to content
Back to skills

Done

ASecurity

Issue #13 requests a `lint-and-fix` skill based on analysis of ~7,350 session history entries showing ~140 occurrences of lint/format/fix commands. The user frequently runs eslint, shellcheck, markdownlint, shfmt, prettier, and knip across projects, often combining linting with committing. This skill automates the detect → run → report → fix → commit workflow.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 2, 2026
ai-agentsgoshell

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned October 2, 2026

npx -y skills add cboone/agent-harness-plugins --skill done --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Done?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Done
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cboone-done-agent-harness-plugins/badge)](https://www.skillsdirectory.com/skills/cboone-done-agent-harness-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Add lint-and-fix Skill Plugin

## Context

Issue #13 requests a `lint-and-fix` skill based on analysis of ~7,350 session history entries showing ~140 occurrences of lint/format/fix commands. The user frequently runs eslint, shellcheck, markdownlint, shfmt, prettier, and knip across projects, often combining linting with committing. This skill automates the detect → run → report → fix → commit workflow.

## Approach

Pure skill plugin (SKILL.md only, no hooks or scripts). The SKILL.md guides Claude through detecting linters by checking for config files, running them with auto-fix flags, and resolving remaining issues. This matches the pattern of `commit`, `pr`, and `address-review`.

## Files to Create

### 1. `plugins/lint-and-fix/.claude-plugin/plugin.json`

Standard plugin metadata. Fields alphabetized per convention. Version `1.0.0`. Category will be `code-quality` in marketplace.

### 2. `plugins/lint-and-fix/skills/lint-and-fix/SKILL.md`

The main deliverable. Structured as:

- **Frontmatter**: `name` and `description` (with trigger phrases)
- **Options section**: `--commit`/`--no-commit`, `--tool <name>`, `--check`
- **Workflow** (7 steps):
  1. **Detect available tools** — Check for config files (eslint, prettier, markdownlint, shellcheck, shfmt, knip, package.json scripts, project lint scripts). Build a tool list with detection table mapping config files → tool → fix command → check command.
  1. **Present detected tools** — Show table before running.
  1. **Run each tool** — Execute sequentially with auto-fix flags. Tool-specific exit code handling. Record results.
  1. **Report results** — Summary table (tool, status, fixed count, remaining count).
  1. **Fix remaining issues** — Read errors, understand the specific rule, edit code to comply, re-run tool to verify.
  1. **Final verification** — Re-run all tools in check mode to confirm clean state.
  1. **Commit (optional)** — Controlled by `--commit`/`--no-commit` flags, or ask. Uses `style:` conventional commit type.
- **Error Handling**: No tools detected, tool not installed, execution failures, conflicting tools (package.json scripts vs standalone configs).

## Files to Modify

### 3. `.claude-plugin/marketplace.json`

- Bump `metadata.version` from `1.7.0` → `1.8.0` (minor bump for adding a plugin)
- Insert new entry alphabetically between `create-worktree-from-issue` (line 109) and `merge-main` (line 110)
- Entry fields: `author`, `category` (`code-quality`), `description`, `homepage`, `keywords`, `license`, `name`, `repository`, `source`, `version` — all matching plugin.json where shared

### 4. `README.md`

- **ToC** (line 14): Insert `∙ [Lint and Fix](#lint-and-fix)` between "Create Worktree from Issue" and "Merge Main" in the Workflow subcategory
- **Description section** (between line 81 and line 82): Insert new H3 section with description paragraph and `> **Trigger:** /lint-and-fix` blockquote

### 5. `CLAUDE.md`

- Insert directory tree entry alphabetically between `create-worktree-from-issue/` block (ending line 57) and `merge-main/` block (starting line 58)

## Verification

1. Confirm `plugin.json` fields are alphabetized and `name` matches directory name
1. Confirm `marketplace.json` entry matches `plugin.json` on all shared fields
1. Confirm `marketplace.json` metadata version is `1.8.0`
1. Confirm SKILL.md frontmatter has exactly `name` and `description`
1. Confirm README ToC follows one-link-per-line format with `∙` prefix
1. Confirm README description section is in alphabetical order
1. Confirm CLAUDE.md tree entry uses correct indentation and is alphabetical
1. Validate marketplace.json is valid JSON

Files in this skill

  • 2026-02-15-add-create-worktree-skill-with-prompt-injection.md3.6 KB
  • 2026-02-16-mention-issues-in-prs.md4.2 KB
  • 2026-02-17-add-goreleaser-homebrew-skill.md9.1 KB
  • 2026-02-17-add-issue-status-management.md5.3 KB
  • 2026-02-17-add-lint-and-fix-skill.md3.6 KB
  • 2026-02-17-add-setup-gitleaks-skill.md4.5 KB
  • 2026-02-17-copilot-instructions-defaults.md3.5 KB
  • 2026-02-17-expand-repo-bootstrap-coverage.md6.2 KB
  • 2026-02-17-readme-restructuring.md5.4 KB
  • 2026-02-18-improve-readmes.md6.6 KB
  • 2026-02-18-setup-ci.md3.8 KB
  • 2026-02-20-create-create-plugin-skill.md5.4 KB
  • 2026-02-20-extract-copilot-graphql-into-script.md6.9 KB
  • 2026-02-20-restructure-readmes-per-plugin.md5.4 KB
  • 2026-02-21-add-govulncheck-to-go-scaffolding.md6.3 KB
  • 2026-02-21-consolidate-ci-workflows.md1000 B
  • 2026-03-01-add-changelog-to-scaffolding.md2.9 KB
  • 2026-03-01-add-done-plans-handling-to-new-repo-setup.md3 KB
  • 2026-03-01-add-recommended-permissions-to-readmes.md6.3 KB
  • 2026-03-01-create-bootstrap-project-skill.md7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…