chat-gun-bff-contract

Enforce OpenSpecs and coding standards for TypeScript and Node.js BFFs.

63|14|Updated Jun 6, 2026
One-click install
npx skills add https://github.com/HsienW/chat-gun-react-agent --skill chat-gun-bff-contract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chat-gun-bff-contract
Source: https://github.com/HsienW/chat-gun-react-agent/tree/main/.agents/skills/chat-gun-bff-contract
Command: npx skills add https://github.com/HsienW/chat-gun-react-agent --skill chat-gun-bff-contract

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for maintaining high coding standards and security in TypeScript and Node.js Backends for Frontends (BFFs) within the chat-gun-react-agent project.

Core Features & Use Cases

  • Coding Standards Enforcement: Implements approved OpenSpec proposals and maintains best practices in code style, readability, and architecture.
  • Security Measures: Protects against security risks such as injection attacks, data exfiltration, and unauthorized access.
  • Error Handling and Recovery: Provides robust error handling, recovery from errors, and ensures BFF reliability.

Quick Start

To run the chat-gun-bff-contract Skill, use the following command:

./run-bff-contract

Frequently Asked Questions about chat-gun-bff-contract

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

FAQPage Schema
How do I enforce coding standards and security checks in a TypeScript Node.js BFF?

To enforce coding standards and security checks in a TypeScript Node.js BFF, use this Skill to validate code against OpenSpecs, prevent injection attacks, and manage error recovery. It ensures your backend adheres to established contracts.

What is the best way to handle timeout management and error recovery for Node.js BFFs?

Handling timeout management and error recovery for Node.js BFFs is achieved by implementing robust error handling mechanisms that ensure backend reliability and compliance with established contracts. This Skill provides those specific protective measures.

Does this BFF contract Skill work without external dependencies?

Yes, this BFF contract Skill operates without external dependencies. It runs independently via a script component to enforce security measures and coding standards directly within your TypeScript and Node.js environment.

How do I start running security and compliance checks for my chat-gun-react-agent BFF?

To start running security and compliance checks for your chat-gun-react-agent BFF, execute the `./run-bff-contract` command. This initiates validation against OpenSpec proposals and applies security rules to your codebase.

Why does my TypeScript BFF fail OpenSpec compliance checks?

Your TypeScript BFF may fail OpenSpec compliance checks due to unmitigated security risks like injection vulnerabilities, inadequate error handling, or violations of established architectural contracts. This Skill identifies and enforces corrections for these specific issues.