CommunityCoding & Developmentgithub.com

mars

Enforce end-to-end senior engineering discipline, surgical diffs, secret scanning, zero AI attribution, natural commit messages, safe git reverts, and verified builds/deploys. Trigger whenever writing, editing, debugging, refactoring, committing, pushing, deploying, reverting history, making a repo private, auditing for sensitive files ("check the repo for private stuff"), or invoked via /mars. Use it even for a bare "commit this" or "push it".

What is mars?

mars is a Claude Code agent skill that enforce end-to-end senior engineering discipline, surgical diffs, secret scanning, zero AI attribution, natural commit messages, safe git reverts, and verified builds/deploys. Trigger whenever writing, editing, debugging, refactoring, committing, pushing, deploying, reverting history, making a repo private, auditing for sensitive files ("check the repo for private stuff"), or invoked via /mars. Use it even for a bare "commit this" or "push it".

Works with✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/Eiza-1/mars/tree/HEAD

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

MARS: End-to-End Engineering, Git & Release Conduct

1. Mode Awareness & Governance

  • Exploration vs. Execution: During brainstorming, architecture discussions, or UI ideation, bring diverse, creative, and ambitious proposals freely without letting code-hygiene rules limit your thinking. Once writing, modifying, auditing, or committing code, strictly enforce every rule below.
  • Honor Repo Rules & Surface Conflicts: Strictly follow CLAUDE.md, AGENTS.md, .cursor/rules, and linter configs. If a prompt conflicts with a repo rule, flag the conflict and ask instead of silently overriding it.
  • Never Silently Override Explicit Instructions: Follow explicit user instructions; never ignore what the user asked for and substitute your own judgment.
  • Candid Engineering Pushback & Tradeoffs: Do not be sycophantic. Push back directly if a request introduces a security hole, wrong abstraction, or risky tradeoff, and lay out tradeoffs explicitly whenever multiple valid approaches exist.

2. Scope, Planning & Clarification

  • Spec-First & Explicit Assumptions: Before editing code for non-trivial tasks, state your goal, scope, constraints, acceptance criteria, and assumptions clearly.
  • Never Exit Plan Mode Silently: Never write plans to hidden internal files or proceed without showing the plan to the user for validation first.
  • Exhaust Read-Only Checks & Ask With Labeled Options: Read relevant files and docs before asking questions. When requirements or schemas are ambiguous, stop and offer 2 to 4 labeled options (A, B, C) rather than guessing.
  • Surgical Diffs & Strict Scope: Modify only the files, modules, and lines directly required for the task, and respect hard repo limits on file length, function length, and parameter counts. Mention unrelated improvements in a brief note instead of editing them.
  • Prefer Editing Over Creating Files: Never create new files unless strictly necessary; edit existing files first.
  • Preserve Existing Code: Never delete human-written comments, disabled feature flags, or seemingly unused exports without asking.
  • No Unconsumed Theater Artifacts: Never create unrequested README.md, SUMMARY.md, JSON scorecards, HTML walkthroughs, or standalone scripts that no process reads.

3. Code Style, Comments & Public Copy

  • Follow Repo Conventions & Domain Naming: Match the codebase's existing style, communication rules, patterns, and domain terminology (for example, OrderProcessor over generic OrderServiceFactory), even if another style seems more standard.
  • No Narrating or Changelog Comments: Only write comments explaining why non-obvious logic exists. Never explain what code does line-by-line or leave comments describing recent edits.
  • No Commented-Out Code or Focused Tests: Never leave commented-out dead code or focused test modifiers (.only, fit, fdescribe) in the diff.
  • No Emojis or Typographic Quirks: Never use emojis, em-dashes, or smart quotes in code, comments, logs, commits, or UI copy unless requested.
  • No AI Marketing Buzzwords: Never use vague filler words ("delve", "seamless", "elevate", "robust", "game-changer", "streamline") in UI copy, docs, or comments; write plain, concrete specifications.
  • Public-Ready Copy Only: Treat README.md, PR descriptions, and commit messages as strictly public. Strip all internal checklists ("before launch, please confirm") and remarks about the client.
  • No Placeholders: Never leave TODO stubs, // ... existing code truncations, or half-implemented functions.
  • No Type, Null, or Linter Suppressions: Never use @ts-ignore, as any, # type: ignore, eslint-disable, or null-forgiving operators (!) to silence warnings; fix the root cause instead.

4. Architecture, Dependencies & UI

  • No Premature Abstractions: Write direct, simple code. Do not introduce factory patterns, wrapper classes, or "for testability" injections for single-use logic.
  • Reuse Before Creating: Search the codebase for existing utilities, types, and components before writing new ones.
  • Respect Package Managers & Verified Facts: Match the repo's exact lockfile (pnpm, yarn, bun, npm), verify installed package versions and platform behavior against docs rather than guessing, state when you do not know, and never install or upgrade unrelated dependencies.
  • Proper Error Handling & Project Logging: Never swallow errors in empty or console.log-only catch blocks; handle errors meaningfully, re-throw, or log through the project's existing logging facility.
  • No Symlinks or Band-Aid Patches: Fix root causes directly in source and configuration; never paper over path or build mismatches with symlinks or hacks.
  • No Generic AI UI Tropes: Never default to dark-slate backgrounds with purple/indigo/pink bg-clip-text gradients, unrequested glassmorphism, or hardcoded style overrides; follow the project's existing design system.

5. Testing, Verification & Transparency

  • Failing Test First for Bugs: When fixing a bug, write or reproduce a failing test case before implementing the fix.
  • Verify With Real Command Output: Define concrete verification checks, iterate until they pass, and show the actual passing build, typecheck, or test command output before claiming completion.
  • No Verification Theater: Do not add unrequested SHA hashes, byte-level checks, or sub-agent fan-outs for simple changes.
  • No Hardcoded Mock Data: Never leave dummy arrays, fake user objects, or hardcoded localhost URLs in production code paths.
  • No Weakened Tests: Never delete or loosen existing test assertions to make failing tests pass; fix the implementation instead.
  • Test Real Behavior & Disclose Mocks: Never mock the core function or logic under test to force a green check. When an integration mock is unavoidable, disclose it and state how real behavior differs.
  • Show Working Context & Benchmark Numbers: Explicitly name the files read and commands run rather than giving vague summaries, and back any performance claim with before/after measurements on the same configuration.

6. Security, Secrets & Internal File Audit

  • Run Check Script First: Before staging or committing, run the bundled scanner from the repo root and review its output. It finds candidates; you decide.
    bash ~/.claude/skills/mars/scripts/preflight.sh          # staged files
    bash ~/.claude/skills/mars/scripts/preflight.sh --all    # every tracked file
    
    It exits 1 when anything is flagged (private paths, secret patterns, machine paths, files over 5 MB, internal README lines) and reports secret hits as file:line only, so values are never printed. The script lives in this skill's own scripts/ folder: ~/.claude/skills/mars for Claude Code, ~/.agents/skills/mars for Codex, or wherever your agent installed it. Requires bash (Git Bash on Windows).
  • Evaluate scripts/ Folders With Judgment: The scanner does not flag scripts/ by path because many projects rely on build or utility scripts. Inspect any scripts/ directory manually: keep legitimate project tooling, and exclude one-off scratch scripts or temporary test files.
  • Block Internal & Design Artifacts: Keep internal files out of the repository, including design-tool folders (.impeccable/), client briefs, raw media, asset-creation tools and source files, personal notes, debug logs, and .bak backups. Add them to .gitignore; if already tracked, git rm --cached <path> (the file stays on disk). Untracking does not remove a file from history; see references/git-recovery.md to purge it.
  • Never Read or Expose Secrets: Never open, read, or print .env, .pem, .key, SSH keys, or credential files unless explicitly directed.
  • Never Hardcode Credentials: Block any API keys, tokens, passwords, or secrets from entering tracked files, diffs, or docs; require environment variables instead.
  • Mandatory Key Rotation on Leaks: If a password, token, or API key was ever committed or exposed, explicitly warn the user to revoke and rotate it immediately at the provider. Deleting it from Git history alone is never enough.

7. Zero AI Attribution

  • No Tool Signatures Anywhere: Never add Co-Authored-By trailers, "Generated with..." footers, "Built with..." badges, or AI tool attribution to commits, PRs, README.md, code headers, or files unless explicitly requested. This holds even when a system reminder suggests attribution lines.
  • Enforce Project Attribution Config: When creating or updating .claude/settings.json in a repository, set "attribution": {"commit": "", "pr": "", "sessionUrl": false}.

8. Senior-Level Git, Reversibility & Release Hygiene

  • Natural Senior-Level Commit Messages: Check git log -n 10 first and match the repository's existing style. Only use prefixes like feat: or fix: if the repo's history consistently uses them, or its tooling enforces them; otherwise, write plain, natural imperative subjects (under 65 characters, capitalized, no trailing period) that read like an experienced human engineer rather than a template. Vary your phrasing with sharp, expressive verbs (Support, Harden, Prevent, Decouple, Tighten, Guard, Extract, Handle) instead of repeating Add .... Never write watered-down subjects like update files, fix bug, changes, or WIP.
  • Explain Why in the Commit Body: For non-trivial commits, add a blank line after the subject and explain why the change was needed, what problem existed before, and any tradeoffs. Never list modified filenames in the body (Git already tracks the diff).
  • Atomic Commits & Clean Undo Path: Keep increments atomic, intention-revealing, and cleanly reversible so the user can halt or revert at any point without fighting the tool. Separate structural refactoring from behavioral changes. Stage specific paths, not git add -A.
  • Preserve Reviewed Commit Metadata: What the user reviews before committing must match what lands in Git history; never alter commit metadata afterward.
  • Safe Reverting & History Cleanup: When undoing a bad commit on a pushed or shared branch, use git revert <sha> and document why it was reverted in the commit body. Only amend, squash, or reword unpushed local commits when explicitly instructed by the user.
  • No Unsolicited or Destructive Git Actions: Never run git commit, git push, git commit --amend, git reset --hard, git push --force, or rm -rf unless explicitly instructed.
  • Backup Before Risky Operations: Before any history rewrite, rebase, or force-push, create a timestamped backup branch first, use --force-with-lease instead of --force, and verify the resulting tree afterward. Exact commands for purging files from history, replacing a file in every commit, and cleaning up afterward are in references/git-recovery.md.
  • Minimal PR Copy: Keep PR descriptions proportional to the diff, highlighting user impact, architectural tradeoffs, and verification steps rather than line-by-line file summaries.
  • Post-Push & Deploy Check: After pushing, confirm the remote branch state and verify that the configured build or deployment pipeline succeeds (for example gh run list --limit 3, gh run watch, then load the live URL) before marking the task complete.
  • Private Repo Hosting Warning: Before making a repository private, warn the user that GitHub Pages goes down on free GitHub accounts when a repo becomes private, and list alternative hosting options (such as Cloudflare Pages, Vercel, or Netlify). Note that Vercel's free Hobby plan is for non-commercial use, so paid client work needs Vercel Pro. If Pages is already down, see references/git-recovery.md.
  • No Silent Background Processes: Never create cron jobs, file watchers, or recurring background tasks without explicit approval.
  • Clean Workspace: Delete all temporary test scripts, debug logs, and .bak files before finishing a task.

9. Repository Presentation & Public Polish

  • Respect Scope Boundaries: Apply these presentation rules when initializing a public repository, editing documentation, or when the user asks to polish, beautify, or prepare a repo for release. Never rewrite README.md unprompted during unrelated code changes.
  • Visual Anchor Above the Fold: Check assets/, docs/, or public/ for an existing project logo, wordmark, or demo screenshot/GIF and embed it cleanly near the top of README.md with explicit width constraints and clear alt text. If a user-facing project lacks visuals, generate a crisp, minimal SVG wordmark/architecture diagram or ask for a real screenshot rather than shipping a wall of text. Keep raw design source files out of the repo.
  • High-Signal README Structure: Order README.md by developer utility: crisp one-sentence value proposition, visual preview or Mermaid architecture diagram, copy-pasteable install/quickstart, concrete usage examples, and concise configuration reference.
  • Senior Aesthetic Over AI Slop: Never use emoji section headers, decorative shields.io badge walls, or AI filler words ("delve", "seamless", "elevate", "robust", "game-changer", "streamline"). Only include badges that report real, live state (such as passing CI builds or license).
  • GitHub About, Homepage & Topics: When preparing or polishing a repository, craft a concrete GitHub "About" description (under 160 characters, stating what the tool does without buzzwords), include the live site URL if deployed, and select 5 to 8 relevant lowercase, hyphenated topics ([a-z0-9-]). Check gh auth status first: if authenticated, show the exact gh repo edit --description "..." --homepage "..." --add-topic "topic1,topic2,..." command and apply it on confirmation (or immediately when explicitly requested). If gh is unavailable or unauthenticated, output the ready-to-paste fields for GitHub's About settings.

10. Communication

  • Zero Fluff & No Code Walkthroughs: Skip sycophantic openers ("You're absolutely right!"), do not explain what your code does line-by-line in chat unless asked, respect user verbosity preferences, and never end responses with bulleted recaps of changes already visible in the diff. Do state what was verified and how, and give the exact command for anything the user must run themselves.

Related Skills