Formats and writes slash-command files for the GigaCode AI tool, generating Markdown with YAML frontmatter under .gigacode/commands/. Reuse when adding support for a new AI coding tool's command format.
// Source: https://github.com/Fission-AI/OpenSpec | License: MIT | Copyright 2024 OpenSpec Contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
* GigaCode Command Adapter
*
* Formats commands for GigaCode using its Markdown custom command format.
* Project commands live in `.gigacode/commands/` and accept an optional
* `description` field in YAML frontmatter.
*
* @see https://gitverse.ru/docs/ai/ai-assistant-gigacode/gigacode-cli/commands
*/
import path from 'path';
import type { CommandContent, ToolCommandAdapter } from '../types.js';
import { escapeYamlValue } from '../yaml.js';
/**
* GigaCode adapter for command generation.
* File path: .gigacode/commands/opsx-<id>.md
* Format: Markdown with description frontmatter
*/
export const gigacodeAdapt
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key