一键导入
add-cli-options
This skill covers the creation of shared options for CLI commands. Trigger: When defining command-line interfaces using the `click` library.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
This skill covers the creation of shared options for CLI commands. Trigger: When defining command-line interfaces using the `click` library.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Four quality gate checklists for frontend: baseline visual, accessibility, metadata/SEO, and motion performance. Post-implementation quality gates. Trigger: When reviewing UI changes, before merging frontend PRs, during sdd-verify.
Browser-based UI verification using Playwright. Page Object Model, selector best practices, visual regression, network interception, and MCP integration. Trigger: When writing E2E tests, verifying UI changes, or setting up Playwright.
Interactive tutorial-style lessons for custom skills. Invoke /powerup <skill> for a guided walkthrough with examples, exercises, and knowledge checks. Trigger: When user says "powerup", "tutorial", "teach me", or wants to learn a skill interactively.
Self-installing markdown recipes for skills. Each skill can include an INSTALL.md that an agent reads and executes to set up dependencies, MCP servers, or config. Trigger: When installing a skill with INSTALL.md, or creating skills with setup requirements.
This skill covers the implementation of authentication routes. Trigger: When setting up auth-related endpoints in the backend.
This skill covers AES-256-GCM encryption for provider API keys. Trigger: Load this skill when handling crypto operations for API keys.
| name | add-cli-options |
| description | This skill covers the creation of shared options for CLI commands. Trigger: When defining command-line interfaces using the `click` library. |
| license | Apache-2.0 |
| metadata | {"author":"repoforge","version":"1.0"} |
Use the main function to set up the entry point for your CLI application.
import click
from repoforge.cli import main
@main.command()
def my_command():
click.echo("This is my command.")
Utilize the skills export to define reusable command options.
import click
from repoforge.cli import skills
@skills.option('--verbose', is_flag=True, help='Enable verbose output.')
def my_command(verbose):
if verbose:
click.echo("Verbose mode is on.")
python repoforge/cli.py my_command
Hardcoding options reduces flexibility and reusability across commands.
# BAD
@click.command()
@click.option('--option', default='value', help='Hardcoded option.')
def my_command(option):
click.echo(option)
| Task | Pattern |
|---|---|
| Define a command | @main.command() |
| Add shared options | @skills.option() |