Implementation Standards

Enforce Bastion protocol coding standards, type interfaces, Zod schemas, and error codes.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/Glorktelligence/Bastion --skill implementation-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Implementation Standards
Source: https://github.com/Glorktelligence/Bastion/tree/main/.claude/skills/implementation
Command: npx skills add https://github.com/Glorktelligence/Bastion --skill implementation-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of guidelines and best practices to ensure all code developed for the Bastion project is production-ready, secure, and adheres to established conventions.

Core Features & Use Cases

  • Code Quality Enforcement: Ensures code is well-tested, validated, and includes robust error handling with specific Bastion error codes.
  • Standardized Conventions: Defines naming conventions for packages, files, types, functions, and more, promoting consistency across the codebase.
  • Header and Import Order: Mandates specific file headers for licensing and defines a clear import order to improve readability.
  • Use Case: A new developer joins the Bastion project and needs to implement a new feature. By following this Skill, they can ensure their code meets the high standards for security, maintainability, and consistency required by the project.

Quick Start

Follow the naming conventions and error handling patterns outlined in this skill when writing new code.

Frequently Asked Questions about Implementation Standards

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

FAQPage Schema
What are production-ready TypeScript coding standards for secure enterprise projects?

Production-ready TypeScript coding standards enforce strict type interfaces, Zod schema validation, structured error handling with specific error codes, and mandatory audit logging to ensure code security and maintainability.

How do I implement error handling and validation patterns for the Bastion protocol?

Implement Bastion protocol error handling by applying Zod schemas for input validation and throwing specific Bastion error codes within robust try-catch blocks, ensuring all failures are captured by audit logging.

How do I structure TypeScript file headers and import order to meet strict coding standards?

Structure TypeScript file headers by applying mandatory licensing metadata at the top, followed by a defined import order that separates external dependencies, internal modules, and local types to improve readability.

Do I need to follow specific naming conventions for TypeScript functions and types in production code?

Yes, standardized naming conventions for packages, files, types, and functions are required to promote consistency across the codebase and ensure all production code meets project maintainability standards.

What testing and validation protocols are required before code is considered complete?

Code is considered complete only after it strictly adheres to established testing and validation protocols, including passing Zod schema validations, verifying audit logging, and ensuring robust error handling.

When should I apply Zod schemas and audit logging in my TypeScript project?

Apply Zod schemas and audit logging continuously during development to enforce production-ready code standards, ensuring all data inputs are validated and system actions are tracked for security compliance.