mbc-net/mbc-cqrs-serverless/mbc-review
Claude Code and agent skill by mbc-net/mbc-cqrs-serverless
- community
Checking that the SKILL.md file is still in the repository.
Review code for MBC CQRS Serverless best practices and anti-patterns. Use this when reviewing code that uses MBC CQRS Serverless framework, checking for common mistakes, or validating implementation patterns.
Install
npx vskill@latest install mbc-net/mbc-cqrs-serverless/mbc-reviewSKILL.md
The same SKILL.md was published earlier as mbc-net/mbc-cqrs-serverless/mbc-review.
Pre-flight Check (Version Update)
Before executing this skill, check for updates:
- Run
mbc install-skills --checkto check if a newer version is available - If the output shows "Update available: X.Y.Z → A.B.C", ask the user:
- "A newer version of MBC skills is available (X.Y.Z → A.B.C). Would you like to update before proceeding?"
- If the user agrees, run
mbc install-skills --forceto update - If the user declines or skills are up-to-date, proceed with the skill
Note: Skip this check if the user explicitly says to skip updates or if you've already checked in this session.
MBC CQRS Serverless Code Review
This skill reviews code for MBC CQRS Serverless best practices and identifies anti-patterns.
⚠️ Important: Two Anti-Pattern Code Systems
This codebase currently has two independent `AP00X` numbering systems that are NOT interchangeable:
- Skill `AP` codes (this document) — used in human-facing reviews and documentation. Stable identifiers for discussion.
- Detector `AP` codes (output of the
mbc_check_anti_patternstool, defined insrc/tools/analyze.ts) — used by the static analysis tool. Numbered in detector implementation order.
Only AP016, AP017, AP018, AP019, and AP021 happen to refer to the same concept in both systems. All other AP numbers diverge — for example, the detector's AP005: Hardcoded Tenant corresponds to this document's AP002: Missing tenantCode. Do not assume the codes match.
Cross-reference table (detector → skill doc):
| Detector code (analyze.ts) | Skill doc code (this file) | Topic | |
|---|---|---|---|
| AP001 Direct DynamoDB Write | AP012 | Bypassing CommandService / DataService | |
| AP002 Ignored Version Mismatch | AP005 | ConditionalCheckFailedException handling | |
| AP003 N+1 Query Pattern | — (detector only) | Query in a loop | |
| AP004 Full Table Scan | — (detector only) | .scan() usage | |
| AP005 Hardcoded Tenant | AP002 | Multi-tenant code/key handling | |
| AP006 Missing Tenant Validation | AP002 | Trusting client-provided tenantCode | |
| AP007 Throwing in Sync Handler | — (detector only) | DataSyncHandler error escape | |
| AP008 Hardcoded Secret | — (detector only) | Secrets in code | |
| AP009 Manual JWT Parsing | — (detector only) | Bypassing Cognito authorizer | |
| AP010 Heavy Module Import | — (detector only) | Cold-start optimization | |
| AP011 Deprecated Method Usage | AP010 | publish() / publishPartialUpdate() removal | |
| AP012 Uppercase COMMON Tenant Key | — (detector only) | v1.1.0 tenant key migration | |
| AP013 publishSync Null Return Unchecked | AP001 (related) | publishSync v1.2.0+ return | |
| AP014 Deprecated genNewSequence | AP010 (related) | v1.2.0 sequence API change | |
| AP015 Duplicate TaskModule Registration | — (detector only) | v1.2.4 global TaskModule | |
| AP016 Missing Error Logging Before Rethrow | AP016 | ✅ same code | |
| AP017 Incorrect Attribute Merging | AP017 | ✅ same code | |
| AP018 Missing Swagger Documentation | AP018 | ✅ same code | |
| AP019 Missing Pagination in List Queries | AP019 | ✅ same code | |
| AP020 Missing getCommandSource for Tracing | AP011 | Tracing/audit | |
| AP021 Event Emit After publishAsync | AP021 | ✅ same code | |
| AP022 Use of eval() or Function() Constructor | — (detector only) | RCE/XSS sink (CWE-95) | |
| AP023 Shell Command Built from String Concatenation | — (detector only) | Command injection (CWE-78) | |
| AP024 HTTP Request Without Timeout | — (detector only) | Local DoS via stalled upstream (CWE-400) | |
| AP025 Logging process.env or full request object | — (detector only) | Sensitive data exposure (CWE-312, CWE-532) | |
| AP026 @Injectable instead of @NotificationTransport | — (detector only) | INotificationTransport implementor never invoked | |
| AP027 GroupRoleResolver also annotated with @Injectable | AP022 | Incorrect group-based role resolver (v1.3.1+) | |
| AP028 Duplicate DataSyncHandler Registration | AP023 | ✅ same code | |
| AP029 Reserved DataSyncHandler Type | AP024 | ✅ same code | |
| AP030 Fully-Qualified Table Name in @DataSyncHandler | AP025 | ✅ same code |
When you receive mbc_check_anti_patterns output, look up the detector code in this table to find the corresponding skill-doc section for full context and recommended fixes. Future versions of this framework should consolidate the two systems; until then, treat them as separate identifier spaces.
Anti-Patterns to Detect
AP001: Using publishSync Instead of publishAsync
Severity: Warning
Pattern:
Explanation: publishAsync is the recommended default. Only use publishSync when immediate consistency is absolutely required, as it blocks until processing completes.
AP002: Missing tenantCode in Multi-Tenant Operations
Severity: Error
Pattern:
Explanation: All operations must include tenantCode for proper tenant isolation.
AP003: Hardcoded Version Numbers
Severity: Error
Pattern:
Explanation: Use VERSION_FIRST constant for new entities. For updates, always fetch the current version to enable optimistic locking.
AP004: Missing DataSyncHandler Registration
Severity: Error
Pattern:
Explanation: If you have DataSyncHandlers, they must be registered in the module.
AP005: Not Handling ConditionalCheckFailedException
Severity: Warning
Pattern:
Explanation: Optimistic locking can cause version conflicts that should be handled gracefully.
AP006: Using Wrong PK/SK Format
Severity: Error
Pattern:
Explanation: Follow the ENTITY#value convention for partition and sort keys.
AP007: Missing invokeContext in Service Methods
Severity: Error
Pattern:
Explanation: invokeContext is required to extract user information and tenant context.
AP008: Not Using generateId for Entity IDs
Severity: Warning
Pattern:
Explanation: Use generateId() for consistent ID generation across the framework.
AP009: Missing DTO Validation Decorators
Severity: Warning
Pattern:
Explanation: Always use class-validator decorators for input validation.
AP010: Deprecated Method Usage
Severity: Warning
Pattern:
Explanation: The non-Async methods are deprecated. Use publishAsync and publishPartialUpdateAsync.
AP011: Missing getCommandSource for Tracing
Severity: Warning
Pattern:
Explanation: Always include source in publish options for debugging and audit trails.
AP012: Direct DynamoDB Access Instead of DataService
Severity: Warning
Pattern:
Explanation: Use DataService for read operations. It provides caching, consistent interfaces, and proper error handling.
AP013: Missing Type Declaration in DataSyncHandler
Severity: Error
Pattern:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/mcp-server/skills/mbc-review/SKILL.md
Popularity
- Repository stars
- 29
- Repository forks
- 5
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mbc-net/mbc-cqrs-serverless/mbc-review)