mamba-mental/agent-skill-manager
Overview
This skill implements a Defense-in-Depth Validation strategy that adds validation checks at every layer data passes through to make bugs structurally impossible. It integrates entry-point validation, business logic checks, environment guards, and debug instrumentation to catch invalid state from multiple angles. The goal is to stop invalid inputs early and ensure later layers still protect against bypasses, mocks, and refactors.
How this skill works
The skill instruments key code paths with four validation layers: API/entry-point checks to reject obviously invalid input; business-logic assertions to ensure data is sensible for the operation; environment guards to prevent dangerous context-specific actions; and debug instrumentation to capture context when something unexpected occurs. When a bug is found, the skill guides tracing data flow, mapping checkpoints, and adding or tightening validations at each layer, then verifies by testing bypass attempts.
When to use it
- When an input validation bug recurs after a single fix
- Before performing filesystem, network, or process-changing actions
- In tests to prevent operations that modify real resources
- When refactoring or adding alternate code paths that may bypass checks
- During incident forensics to capture context and repro data
Best practices
- Validate at the API boundary but never rely on it alone
- Add focused business-logic checks for operation-specific invariants
- Enforce environment guards in test and CI to avoid side effects
- Attach lightweight debug context (stack, cwd, inputs) around risky ops
- Write tests that attempt to bypass each layer and verify remaining guards
Example use cases
- Reject empty or non-existent working directories at the service boundary
- Assert required workspace parameters inside workspace initialization routines
- Refuse git init in tests unless the directory is inside a temporary path
- Log stack and process context before running external commands for forensic traces
- Harden CI and integration tests by layering checks so mocks cannot trigger real side effects
FAQ
Checks should be inexpensive and focused: entry checks reject obvious invalid input, business checks verify operation-specific invariants, and environment guards are conditional. Properly designed checks add negligible overhead but dramatically reduce risk.
How do I test that a layer actually prevents a bug?
Create targeted tests that intentionally bypass earlier layers (mocks, direct calls) and confirm the next layer still rejects the bad data. Include test cases for environment-specific guards and record debug logs for verification.
16 skills
This skill enforces defense-in-depth by validating data at every layer to prevent bugs and ensure reliable system behavior.
This skill helps teams unlock creative solutions by forcing unrelated concepts together to reveal novel architectural and process insights.
This skill auto-generates quick test scaffolding for new functions and components across frameworks, speeding initial test boilerplate.
This skill helps you identify a single insight that eliminates multiple components, dramatically simplifying systems and reducing maintenance.
This skill analyzes finances, tracks spending, generates visual reports, and offers personalized budget recommendations to improve financial health.
This skill helps you craft visually stunning interfaces by applying proven design principles, workflows, and iterative evaluation across aesthetics,
This skill processes multimedia using FFmpeg and ImageMagick to convert, encode, resize, and filter media for web and apps.
This skill enables managing MCP servers, discovering capabilities, and executing tools to keep context clean and improve task-driven automation.
This skill helps you design schemas, optimize queries, and manage migrations for MongoDB and PostgreSQL with practical, production-ready guidance.
This skill helps you implement modern React/TypeScript frontend guidelines with Suspense, lazy loading, and feature-based organization for scalable apps.
This skill guides you to configure and troubleshoot ElevenLabs eleven_v3 TTS outputs with sultry, ominous, and expressive voice tagging for announcements.
This skill traces bugs backward through the call stack to identify the original trigger and fix at the source.
This skill provides expert guidance for leveraging the Pal MCP Server across multi-model workflows, tool usage, and configuration troubleshooting to optimize
This skill enforces consistent backend architecture using Node.js/Express/TypeScript patterns to improve reliability, testing, and maintainability.
This skill helps you build and optimize modern full-stack web apps using Next.js, Turborepo, and RemixIcon for efficient monorepos and scalable UI.
This skill helps you implement secure authentication and authorization with Better Auth across apps, supporting email, OAuth, 2FA, and session management.