marsai:dev-refactor

Detect MarsAI backend standard deviations in TypeScript projects and generate refactor tasks.

2|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/V4-Company/marsai --skill marsai-dev-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: marsai:dev-refactor
Source: https://github.com/V4-Company/marsai/tree/main/dev-team/skills/dev-refactor
Command: npx skills add https://github.com/V4-Company/marsai --skill marsai-dev-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MarsAI's backend codebases often diverge from prescribed standards, making maintenance and scaling harder. This skill analyzes a TypeScript backend repository to identify gaps, rank them, and generate precise refactor tasks compatible with marsai:dev-cycle.

Core Features & Use Cases

  • Detects deviations from MarsAI standards in architecture, patterns, and testing across backend TypeScript projects.
  • Produces a 1:1 mapping of each finding to a REFACTOR-XXX task, with file:line references and links to standards.
  • Generates a codebase report and visual-change data to support governance, planning, and automated gate checks.

Quick Start

Run marsai:dev-refactor on a TypeScript backend project to generate a prioritized refactor plan.

Frequently Asked Questions about marsai:dev-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit TypeScript backend code for architecture and pattern deviations?

To audit TypeScript backend code, this skill analyzes architecture, patterns, testing coverage, and code organization against MarsAI backend standards to produce a comprehensive findings document with exact file:line references.

Can I generate actionable refactor tasks from a codebase audit report?

Yes, you can generate actionable refactor tasks from an audit report. This skill enforces a strict 1:1 mapping of findings to executable REFACTOR-XXX tasks, including links to standards, for downstream execution.

What is the best way to enforce backend code quality standards in a TypeScript project?

The best way to enforce code quality standards is to analyze the repository for deviations and generate prioritized, executable refactor tasks. This skill outputs a codebase report and visual-change data to support governance and automated gate checks.

Does this refactoring skill provide exact file and line references for code issues?

Yes, this refactoring skill provides exact file:line references for detected deviations. It links each finding directly to the relevant MarsAI backend standards and maps it to a corresponding refactor task.

How do I plan a backend TypeScript refactoring cycle after identifying code smells?

You can plan a refactoring cycle by running this skill to generate a prioritized list of executable tasks. The output is specifically designed to be compatible with marsai:dev-cycle for structured implementation.

What limitations should I expect when auditing backend code organization with this approach?

A limitation is that the audit strictly targets backend TypeScript projects and enforces MarsAI backend standards exclusively. Deviations are mapped to refactor tasks for marsai:dev-cycle, requiring that downstream workflow to execute changes.