configure-status

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/configure:status

/configure:status

Display infrastructure standards compliance status without making changes.
显示基础设施标准合规性状态,不会进行任何修改。

When to Use This Skill

何时使用该技能

Use this skill when...Use another approach when...
Checking overall compliance statusRunning full compliance checks with fixes (use
/configure:all --fix
)
Generating compliance reportsNeed to fix issues found (use
/configure:all
)
Quick project health checkChecking specific component (use
/configure:X --check-only
)
CI/CD status validationRunning interactive selection (use
/configure:select
)
Reviewing current configuration stateNeed detailed component analysis
使用该技能的场景...使用其他方法的场景...
检查整体合规性状态运行带修复的完整合规检查(使用
/configure:all --fix
生成合规报告需要修复发现的问题(使用
/configure:all
快速项目健康检查检查特定组件(使用
/configure:X --check-only
CI/CD状态验证运行交互式选择(使用
/configure:select
查看当前配置状态需要详细的组件分析

Context

上下文

  • Project standards: !
    test -f .project-standards.yaml && echo "EXISTS" || echo "MISSING"
  • Project type: !
    grep -m1 "^project_type:" .project-standards.yaml 2>/dev/null
  • Standards version: !
    grep -m1 "^standards_version:" .project-standards.yaml 2>/dev/null
  • Last configured: !
    grep -m1 "^last_configured:" .project-standards.yaml 2>/dev/null
  • Pre-commit config: !
    test -f .pre-commit-config.yaml && echo "EXISTS" || echo "MISSING"
  • Workflows: !
    find .github/workflows -maxdepth 1 -name '*.yml' 2>/dev/null
  • Has Dockerfile: !
    find . -maxdepth 1 -name 'Dockerfile*' 2>/dev/null -print -quit
  • Has skaffold: !
    test -f skaffold.yaml && echo "EXISTS" || echo "MISSING"
  • Has helm: !
    find . -maxdepth 2 -type d -name 'helm' 2>/dev/null -print -quit
  • Test configs: !
    find . -maxdepth 1 \( -name 'vitest.config.*' -o -name 'jest.config.*' -o -name 'pytest.ini' \) 2>/dev/null
  • Linting config: !
    find . -maxdepth 1 \( -name 'biome.json' -o -name '.eslintrc*' \) 2>/dev/null
  • Editor config: !
    test -f .editorconfig && echo "EXISTS" || echo "MISSING"
  • Gitleaks config: !
    test -f .gitleaks.toml && echo "EXISTS" || echo "MISSING"
  • Package files: !
    find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \) 2>/dev/null
  • 项目标准: !
    test -f .project-standards.yaml && echo "EXISTS" || echo "MISSING"
  • 项目类型: !
    grep -m1 "^project_type:" .project-standards.yaml 2>/dev/null
  • 标准版本: !
    grep -m1 "^standards_version:" .project-standards.yaml 2>/dev/null
  • 上次配置时间: !
    grep -m1 "^last_configured:" .project-standards.yaml 2>/dev/null
  • Pre-commit配置: !
    test -f .pre-commit-config.yaml && echo "EXISTS" || echo "MISSING"
  • 工作流: !
    find .github/workflows -maxdepth 1 -name '*.yml' 2>/dev/null
  • 是否有Dockerfile: !
    find . -maxdepth 1 -name 'Dockerfile*' 2>/dev/null -print -quit
  • 是否有skaffold: !
    test -f skaffold.yaml && echo "EXISTS" || echo "MISSING"
  • 是否有helm: !
    find . -maxdepth 2 -type d -name 'helm' 2>/dev/null -print -quit
  • 测试配置: !
    find . -maxdepth 1 \( -name 'vitest.config.*' -o -name 'jest.config.*' -o -name 'pytest.ini' \) 2>/dev/null
  • 代码检查配置: !
    find . -maxdepth 1 \( -name 'biome.json' -o -name '.eslintrc*' \) 2>/dev/null
  • 编辑器配置: !
    test -f .editorconfig && echo "EXISTS" || echo "MISSING"
  • Gitleaks配置: !
    test -f .gitleaks.toml && echo "EXISTS" || echo "MISSING"
  • 包文件: !
    find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' \) 2>/dev/null

Parameters

参数

Parse from
$ARGUMENTS
:
  • --verbose
    : Show detailed compliance information for each component
$ARGUMENTS
中解析:
  • --verbose
    : 显示每个组件的详细合规性信息

Execution

执行流程

Execute this read-only compliance status check:
执行此只读合规性状态检查:

Step 1: Detect project type

步骤1:检测项目类型

  1. Read
    .project-standards.yaml
    if it exists (shows tracked version and last configured date)
  2. Auto-detect project type from file structure
  3. Report discrepancy if detected type differs from tracked type
  1. 读取
    .project-standards.yaml
    (如果存在,显示跟踪的版本和上次配置日期)
  2. 根据文件结构自动检测项目类型
  3. 如果检测到的类型与跟踪的类型不一致,报告差异

Step 2: Scan configuration files

步骤2:扫描配置文件

Check for presence and validity of each configuration:
ComponentFiles Checked
Pre-commit
.pre-commit-config.yaml
Release-please
release-please-config.json
,
.release-please-manifest.json
,
.github/workflows/release-please.yml
Dockerfile
Dockerfile
,
Dockerfile.*
Skaffold
skaffold.yaml
CI Workflows
.github/workflows/*.yml
Helm
helm/*/Chart.yaml
Documentation
tsdoc.json
,
typedoc.json
,
mkdocs.yml
,
docs/conf.py
,
pyproject.toml [tool.ruff.lint.pydocstyle]
GitHub Pages
.github/workflows/docs.yml
,
.github/workflows/*pages*.yml
Cache Busting
next.config.*
,
vite.config.*
,
vercel.json
,
_headers
Tests
vitest.config.*
,
jest.config.*
,
pytest.ini
,
pyproject.toml [tool.pytest]
,
.cargo/config.toml
Coverage
vitest.config.* [coverage]
,
pyproject.toml [tool.coverage]
,
.coveragerc
Linting
biome.json
,
pyproject.toml [tool.ruff]
,
clippy.toml
Formatting
.prettierrc*
,
biome.json
,
pyproject.toml [tool.ruff.format]
,
rustfmt.toml
Dead Code
knip.json
,
knip.ts
,
pyproject.toml [tool.vulture]
Editor
.editorconfig
,
.vscode/settings.json
,
.vscode/extensions.json
Security
.github/workflows/*security*
,
.gitleaks.toml
,
pyproject.toml [tool.bandit]
检查每个配置的存在性和有效性:
组件检查的文件
Pre-commit
.pre-commit-config.yaml
Release-please
release-please-config.json
,
.release-please-manifest.json
,
.github/workflows/release-please.yml
Dockerfile
Dockerfile
,
Dockerfile.*
Skaffold
skaffold.yaml
CI工作流
.github/workflows/*.yml
Helm
helm/*/Chart.yaml
文档
tsdoc.json
,
typedoc.json
,
mkdocs.yml
,
docs/conf.py
,
pyproject.toml [tool.ruff.lint.pydocstyle]
GitHub Pages
.github/workflows/docs.yml
,
.github/workflows/*pages*.yml
缓存刷新
next.config.*
,
vite.config.*
,
vercel.json
,
_headers
测试
vitest.config.*
,
jest.config.*
,
pytest.ini
,
pyproject.toml [tool.pytest]
,
.cargo/config.toml
覆盖率
vitest.config.* [coverage]
,
pyproject.toml [tool.coverage]
,
.coveragerc
代码检查
biome.json
,
pyproject.toml [tool.ruff]
,
clippy.toml
代码格式化
.prettierrc*
,
biome.json
,
pyproject.toml [tool.ruff.format]
,
rustfmt.toml
死代码检测
knip.json
,
knip.ts
,
pyproject.toml [tool.vulture]
编辑器
.editorconfig
,
.vscode/settings.json
,
.vscode/extensions.json
安全
.github/workflows/*security*
,
.gitleaks.toml
,
pyproject.toml [tool.bandit]

Step 3: Determine compliance status

步骤3:确定合规性状态

For each component, assign a status:
StatusMeaning
PASSFully compliant with project standards
WARNPresent but outdated or incomplete
FAILMissing required configuration
SKIPNot applicable for project type
为每个组件分配状态:
状态含义
PASS完全符合项目标准
WARN已存在但已过时或不完整
FAIL缺少必需的配置
SKIP不适用于该项目类型

Step 4: Print compliance report

步骤4:打印合规报告

Infrastructure Standards Status
====================================
Repository: [name]
Project Type: [type] ([detected])
Standards Version: [version] (tracked: [tracked])
Last Configured: [date]

Component Status:
  Pre-commit      PASS   v5.0.0 hooks, conventional commits
  Release-please  PASS   Node workspace plugin
  Dockerfile      WARN   Missing healthcheck
  Skaffold        PASS   3 profiles configured
  CI Workflows    WARN   Missing test workflow
  Helm            SKIP   No helm/ directory
  Tests           PASS   Vitest configured
  Coverage        WARN   72% (below 80% threshold)
  Linting         PASS   Biome configured
  Formatting      PASS   Biome configured
  Dead Code       WARN   Knip found 3 unused exports
  Editor          PASS   .editorconfig present
  Security        PASS   gitleaks + npm audit

Summary: [N] warnings, [N] failures
Run /configure:all to fix issues
基础设施标准状态
====================================
仓库: [名称]
项目类型: [类型] ([检测结果])
标准版本: [版本] (跟踪版本: [跟踪值])
上次配置时间: [日期]

组件状态:
  Pre-commit      PASS   v5.0.0 hooks, conventional commits
  Release-please  PASS   Node workspace plugin
  Dockerfile      WARN   Missing healthcheck
  Skaffold        PASS   3 profiles configured
  CI Workflows    WARN   Missing test workflow
  Helm            SKIP   No helm/ directory
  Tests           PASS   Vitest configured
  Coverage        WARN   72% (below 80% threshold)
  Linting         PASS   Biome configured
  Formatting      PASS   Biome configured
  Dead Code       WARN   Knip found 3 unused exports
  Editor          PASS   .editorconfig present
  Security        PASS   gitleaks + npm audit

摘要: [N] 个警告, [N] 个失败
运行 /configure:all 以修复问题

Step 5: Show verbose details (if requested)

步骤5:显示详细信息(如果请求)

If
--verbose
flag is set:
  • Show specific version numbers for each hook/tool
  • List individual compliance checks performed
  • Show detected deviations from
    .project-standards.yaml
  • Display file modification timestamps
  • Show cache-busting configuration details (framework, CDN, hash patterns)
如果设置了
--verbose
标志:
  • 显示每个钩子/工具的具体版本号
  • 列出执行的各项合规检查
  • 显示检测到的与
    .project-standards.yaml
    的偏差
  • 显示文件修改时间戳
  • 显示缓存刷新配置详情(框架、CDN、哈希模式)

Agentic Optimizations

Agent优化

ContextCommand
Quick status check
/configure:status
Verbose status
/configure:status --verbose
Check standards version
grep "^standards_version:" .project-standards.yaml 2>/dev/null | sed 's/.*:[[:space:]]*//'
Check last configured date
grep "^last_configured:" .project-standards.yaml 2>/dev/null | sed 's/.*:[[:space:]]*//'
List all workflow files
find .github/workflows -maxdepth 1 -name '*.yml' -exec basename {} \;
上下文命令
快速状态检查
/configure:status
详细状态
/configure:status --verbose
检查标准版本
grep "^standards_version:" .project-standards.yaml 2>/dev/null | sed 's/.*:[[:space:]]*//'
检查上次配置日期
grep "^last_configured:" .project-standards.yaml 2>/dev/null | sed 's/.*:[[:space:]]*//'
列出所有工作流文件
find .github/workflows -maxdepth 1 -name '*.yml' -exec basename {} \;

Flags

标志

FlagDescription
--verbose
Show detailed compliance information
标志描述
--verbose
显示详细的合规性信息

Notes

注意事项

  • This command is read-only - no files are modified
  • Use for CI/CD compliance checks (exit code reflects status)
  • Run before
    /configure:all
    to preview what will be fixed
  • 此命令为只读 - 不会修改任何文件
  • 用于CI/CD合规性检查(退出码反映状态)
  • 在运行
    /configure:all
    之前执行,以预览将修复的内容

See Also

另请参阅

  • /configure:all
    - Run all compliance checks
  • /configure:select
    - Interactively select which components to configure
  • /configure:pre-commit
    - Pre-commit specific checks
  • /configure:release-please
    - Release-please specific checks
  • /configure:all
    - 运行所有合规性检查
  • /configure:select
    - 交互式选择要配置的组件
  • /configure:pre-commit
    - 针对Pre-commit的特定检查
  • /configure:release-please
    - 针对Release-please的特定检查