fitness

Evaluate code quality against configurable fitness gates from cognitive-core.conf.

11|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill fitness-mindcockpit-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fitness
Source: https://github.com/mindcockpit-ai/cognitive-core/tree/main/core/skills/fitness
Command: npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill fitness-mindcockpit-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Evaluates code quality against configurable fitness functions and gates to enforce project standards, reducing manual reviews and regressions.

Core Features & Use Cases

  • Code Standards Fitness: linting, formatting, and naming checks controlled by configurable thresholds.
  • Architecture Fitness: verifies layer dependencies, domain purity, and avoidance of anti-patterns.
  • Test Fitness: ensures new modules include tests and that the test suite passes.
  • Security Fitness: checks for hardcoded secrets, input validation, and safe data handling.
  • Use Case: when preparing a release, run Fitness to certify code quality gates across the repository.

Quick Start

Run the fitness check on a target file or directory to obtain a gate score and suggested fixes.

Frequently Asked Questions about fitness

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

FAQPage Schema
How do I enforce code quality gates before a release?

Code quality gates enforce project standards by evaluating targets against configurable fitness functions. You can run a fitness check on a file or directory to produce a structured gate score and actionable fixes.

What is code fitness and how does it prevent regressions?

Code fitness evaluates repository quality against configurable thresholds for lint, commit, test, and deploy scenarios. It prevents regressions by verifying architecture purity, test coverage, and security standards before changes are merged.

How do I configure lint and test thresholds for my repository?

Lint and test thresholds are configured by reading values from a cognitive-core.conf file. This file defines the fitness gates used to evaluate code standards, test completeness, and security across the repository.

Can I check for hardcoded secrets and security vulnerabilities automatically?

Security fitness checks automatically detect hardcoded secrets, verify input validation, and ensure safe data handling. These checks run as part of the quality gate evaluation to enforce secure coding standards.

Does the fitness check verify architecture layer dependencies and anti-patterns?

Architecture fitness verifies layer dependencies, domain purity, and avoidance of anti-patterns. It evaluates code structure against configured thresholds to enforce architectural standards during quality gate checks.

What is the best way to automate code quality checks across merge and deploy scenarios?

Automating code quality checks across merge and deploy scenarios requires evaluating code against configurable fitness gates. Running a fitness check on the target produces a structured gate score with suggested fixes to certify release readiness.