Do adopt

From thermiteau/maverick · View interactive version

Do adopt is an AI agent skill from the GitHub repository thermiteau/maverick. Scan a project for missing best-practice areas and implement the top recommendation for each gap (linting, unit testing) — installs tools, writes configs, verifies, and commits. Pass 'recommend' to stop after writing recommendations without implementing (replaces the old do-recommend skill).

How to use this skill

Skill file

Adopt Best-Practice Technologies

Scan the current project for missing best-practice areas and implement the top recommendation for each gap — or, in recommend mode, stop after producing recommendations without installing anything.

Modes and Invocation

$ARGUMENTS may contain a topic name, the word recommend, or both:

detection and analysis, write the recommendation as a

status: recommended project skill (see step 5R), and implement

nothing. This replaces the old standalone do-recommend skill.

Do not prompt the user for which topics to process.

Topics

| Topic | Best-Practice Skill |

| ----- | ------------------- |

| linting | mav-bp-linting |

| unit-testing | mav-bp-testing |

Detection hints for each topic come from the shared registry —

${CLAUDE_PLUGIN_ROOT}/skills/do-upskill/topics.json (scanHints per

topic). Do not maintain a separate detection list here.

Process

For each topic:

1. Check Whether the Practice Already Exists

Apply the topic's scanHints (dependencies, grep patterns, file globs)

plus a check for CI steps that run the tool. If the practice is

already implemented (configs exist, dependencies present, actively

used), skip the topic. Print: <topic>: already implemented, skipping.

2. Identify the Project's Tech Stack

Determine the primary language(s) and framework(s) by reading:

3. Read the Best-Practice Skill

Read the corresponding best-practice skill

(${CLAUDE_PLUGIN_ROOT}/skills/<skill-name>/SKILL.md) to understand the

recommended tools and configuration standards for the detected stack.

4. Check for an Existing Recommendation

If docs/maverick/skills/<topic>/SKILL.md exists with

status: recommended frontmatter (written by do-upskill

or a prior recommend-mode run), read it and use its recommended stack —

do not re-analyse. There is exactly one recommendation artifact

format: the project-skill file. Never write a separate

docs/maverick/recommendations/ document.

5R. Recommend-Only Mode — Write the Recommendation and Stop

Pick the best-fit tool for the stack (1 option when there is a clear

winner — e.g. Ruff for Python, ESLint for TypeScript; name up to 2

genuinely competitive alternatives and their trade-offs in the Patterns

section). Write it as a status: recommended project skill at

docs/maverick/skills/<topic>/SKILL.md, using

do-upskill's mandatory output structure (Stack /

Configuration / Patterns / File Locations, prose only, under 100 lines).

Then stop — no installation, no commits.

5. Implement the Top Recommendation

Install and configure the recommended tool. Follow the best-practice skill's standards precisely.

For linting — implement all of:

  1. Install packages — add the linter and formatter as dev dependencies using the project's package manager
  2. Create config file — write the linter config at the project root using the recommended preset (e.g., eslint.config.js with flat config for TS/JS, ruff.toml for Python). Follow the error-only policy from the best-practice skill.
  3. Create formatter config — if the formatter is a separate tool (e.g., Prettier for JS/TS), write its config. If the linter handles formatting (e.g., Ruff), configure it in the same file.
  4. Add ignore patterns — exclude build output, generated code, and vendor directories
  5. Add package scripts — add lint and format (or equivalent) scripts to the project's script runner (package.json scripts, Makefile, pyproject.toml scripts)
  6. Verify — run the lint command and fix any initial errors in project source code. The goal is a clean lint pass, not a config that ignores existing issues.

For unit testing — implement all of:

  1. Install packages — add the test framework and assertion library as dev dependencies
  2. Create config file — write the test runner config at the project root with sensible defaults (e.g., vitest.config.ts for Vite projects, jest.config.js for other JS/TS, pyproject.toml [tool.pytest] for Python)
  3. Create a sample test — write one example test file demonstrating the project's test conventions (file location, import pattern, describe/it structure). Place it alongside or mirroring an existing source file. The test should verify real behaviour, not be a trivial placeholder.
  4. Add package scripts — add a test script (and test:coverage if the framework supports it)
  5. Verify — run the test suite and confirm the sample test passes

6. Update the Project Skill

Rewrite docs/maverick/skills/<topic>/SKILL.md as a factual project

skill describing what is now implemented (drop the

status: recommended field), per do-upskill's output

structure. This keeps the single artifact current.

7. Commit the Changes

Create a conventional commit for each topic adopted:

chore: adopt <tool-name> for <topic> (<topic>)

Follow the mav-git-workflow skill for commit conventions. Do not push — the user will review and push.

Rules

<!-- maverick-plugin-version: 5.3.1 -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.