code-quality-excellence
Skill30 starsChanged 9 months agoApache-2.0View on GitHub
Enforce code quality with ESLint, TypeScript strict mode, Knip unused detection, and quality gates for MCP servers
Files
Code Quality Excellence Skill
Purpose
Maintain high code quality through automated static analysis, TypeScript strict mode, and quality gates for MCP server projects.
When to Use
- ✅ Before committing TypeScript code
- ✅ In CI/CD pipeline quality checks
- ✅ During code reviews
- ✅ Regular quality audits
TypeScript Strict Mode
{
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"exactOptionalPropertyTypes": true
}
}ESLint Configuration
// eslint.config.js
import tseslint from 'typescript-eslint';
export default tseslint.config(
tseslint.configs.strictTypeChecked,
{
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/strict-boolean-expressions': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
}
}
);Quality Gates
| Metric | Threshold |
| Test coverage | ≥80% lines, ≥70% branches |
| Security coverage | ≥95% for security-critical code |
| TypeScript errors | 0 |
| ESLint errors | 0 |
| Unused exports (Knip) | 0 |
| License violations | 0 |
Quality Commands
npm run lint # ESLint check
npx tsc --noEmit # Type checking
npm run knip # Unused detection
npm test # Unit tests
npm run test:coverage # Coverage report
npm run test:licenses # License complianceISMS Policy References
Core policies:
- Secure Development Policy — Primary: Code-quality gates are mandatory SDLC controls; TypeScript strict + ESLint + tests + SAST
- Open Source Policy — Licence compliance (allowlist),
npm run test:licenses, SBOM - Information Security Policy — Quality as a risk-reduction control and transparency enabler
Supporting policies:
- Change Management — Gates run on every PR before merge
- Vulnerability Management — Lint / CodeQL findings triaged with CVSS where applicable
- AI Policy — AI-generated code must pass the same quality gates as human code
In this repository41 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- ai-development-governanceSkill
- ai-governanceSkill
- architecture-documentationSkill
- aws-security-architectureSkill
- behavioral-analysisSkill
- business-model-canvasSkill
- c4-architecture-documentationSkill
- compliance-frameworksSkill
- contribution-guidelinesSkill
- data-science-for-intelligenceSkill
- documentation-standardsSkill
- electoral-analysisSkill
- european-parliament-apiSkill
- european-political-systemSkill
- gdpr-complianceSkill
- github-actions-workflowsSkill
- github-agentic-workflowsSkill
- incident-responseSkill
- intelligence-analysis-techniquesSkill
- isms-complianceSkill
- legislative-monitoringSkill
- mcp-gateway-configurationSkill
- mcp-gateway-securitySkill
- mcp-server-developmentSkill
- open-source-governanceSkill
- osint-methodologiesSkill
- performance-optimizationSkill
- political-science-analysisSkill
- risk-assessment-frameworksSkill
- secrets-managementSkill
- secure-code-reviewSkill
- secure-development-lifecycleSkill
- security-by-designSkill
- seo-best-practicesSkill
- strategic-communication-analysisSkill
- testing-mcp-toolsSkill
- testing-strategySkill
- threat-modeling-frameworkSkill
- typescript-strict-patternsSkill
- vulnerability-managementSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

