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 status | Running full compliance checks with fixes (use |
| Generating compliance reports | Need to fix issues found (use |
| Quick project health check | Checking specific component (use |
| CI/CD status validation | Running interactive selection (use |
| Reviewing current configuration state | Need detailed component analysis |
| 使用该技能的场景... | 使用其他方法的场景... |
|---|---|
| 检查整体合规性状态 | 运行带修复的完整合规检查(使用 |
| 生成合规报告 | 需要修复发现的问题(使用 |
| 快速项目健康检查 | 检查特定组件(使用 |
| CI/CD状态验证 | 运行交互式选择(使用 |
| 查看当前配置状态 | 需要详细的组件分析 |
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- : Show detailed compliance information for each component
--verbose
从中解析:
$ARGUMENTS- : 显示每个组件的详细合规性信息
--verbose
Execution
执行流程
Execute this read-only compliance status check:
执行此只读合规性状态检查:
Step 1: Detect project type
步骤1:检测项目类型
- Read if it exists (shows tracked version and last configured date)
.project-standards.yaml - Auto-detect project type from file structure
- Report discrepancy if detected type differs from tracked type
- 读取(如果存在,显示跟踪的版本和上次配置日期)
.project-standards.yaml - 根据文件结构自动检测项目类型
- 如果检测到的类型与跟踪的类型不一致,报告差异
Step 2: Scan configuration files
步骤2:扫描配置文件
Check for presence and validity of each configuration:
| Component | Files Checked |
|---|---|
| Pre-commit | |
| Release-please | |
| Dockerfile | |
| Skaffold | |
| CI Workflows | |
| Helm | |
| Documentation | |
| GitHub Pages | |
| Cache Busting | |
| Tests | |
| Coverage | |
| Linting | |
| Formatting | |
| Dead Code | |
| Editor | |
| Security | |
检查每个配置的存在性和有效性:
| 组件 | 检查的文件 |
|---|---|
| Pre-commit | |
| Release-please | |
| Dockerfile | |
| Skaffold | |
| CI工作流 | |
| Helm | |
| 文档 | |
| GitHub Pages | |
| 缓存刷新 | |
| 测试 | |
| 覆盖率 | |
| 代码检查 | |
| 代码格式化 | |
| 死代码检测 | |
| 编辑器 | |
| 安全 | |
Step 3: Determine compliance status
步骤3:确定合规性状态
For each component, assign a status:
| Status | Meaning |
|---|---|
| PASS | Fully compliant with project standards |
| WARN | Present but outdated or incomplete |
| FAIL | Missing required configuration |
| SKIP | Not 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 flag is set:
--verbose- 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优化
| Context | Command |
|---|---|
| Quick status check | |
| Verbose status | |
| Check standards version | |
| Check last configured date | |
| List all workflow files | |
| 上下文 | 命令 |
|---|---|
| 快速状态检查 | |
| 详细状态 | |
| 检查标准版本 | |
| 检查上次配置日期 | |
| 列出所有工作流文件 | |
Flags
标志
| Flag | Description |
|---|---|
| Show detailed compliance information |
| 标志 | 描述 |
|---|---|
| 显示详细的合规性信息 |
Notes
注意事项
- This command is read-only - no files are modified
- Use for CI/CD compliance checks (exit code reflects status)
- Run before to preview what will be fixed
/configure:all
- 此命令为只读 - 不会修改任何文件
- 用于CI/CD合规性检查(退出码反映状态)
- 在运行之前执行,以预览将修复的内容
/configure:all
See Also
另请参阅
- - Run all compliance checks
/configure:all - - Interactively select which components to configure
/configure:select - - Pre-commit specific checks
/configure:pre-commit - - Release-please specific checks
/configure:release-please
- - 运行所有合规性检查
/configure:all - - 交互式选择要配置的组件
/configure:select - - 针对Pre-commit的特定检查
/configure:pre-commit - - 针对Release-please的特定检查
/configure:release-please