auth
免费Authentication and authorization patterns for Rossoctl services
中文简介正在准备中。当前显示原文说明。
Add pre-commit hooks, linting, CLAUDE.md, and foundational .claude/ setup to a target repo
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
flowchart TD
START(["/orchestrate:precommit"]) --> DETECT["Detect language"]:::orch
DETECT --> PRECOMMIT["Generate .pre-commit-config.yaml"]:::orch
PRECOMMIT --> LINT["Generate lint config"]:::orch
LINT --> MAKEFILE["Add Makefile targets"]:::orch
MAKEFILE --> CLAUDE_MD["Create CLAUDE.md"]:::orch
CLAUDE_MD --> SETTINGS["Create .claude/settings.json"]:::orch
SETTINGS --> BRANCH["Create branch"]:::orch
BRANCH --> SIZE{Under 700 lines?}
SIZE -->|Yes| PR["Commit + open PR"]:::orch
SIZE -->|No| SPLIT["Split into sub-PRs"]:::orch
SPLIT --> PR
PR --> DONE([Phase complete])
classDef orch fill:#FF9800,stroke:#333,color:white
Follow this diagram as the workflow.
Establish the code quality baseline for a target repo. This is Phase 2 and produces PR #1 — the foundation that validates all subsequent PRs.
orchestrate:plan identifies precommit as a needed phase/tmp/rossoctl/orchestrate/<target>/plan.md.repos/<target>/Use the scan report or check directly:
ls .repos/<target>/go.mod .repos/<target>/pyproject.toml .repos/<target>/package.json .repos/<target>/requirements.yml 2>/dev/null
Create .pre-commit-config.yaml with language-appropriate hooks.
ruff — lint + formattrailing-whitespace, end-of-file-fixer, check-yamlcheck-added-large-filesgolangci-lintgofmt, govettrailing-whitespace, end-of-file-fixereslint, prettiertrailing-whitespace, end-of-file-fixeransible-lint, yamllinttrailing-whitespace, end-of-file-fixerpyproject.toml)[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
.golangci.yml)linters:
enable:
- errcheck
- govet
- staticcheck
- unused
run:
timeout: 5m
.eslintrc.json){
"extends": ["eslint:recommended"],
"env": { "node": true, "es2022": true }
}
If no Makefile exists, create one. If it exists, add targets:
.PHONY: lint fmt
lint:
pre-commit run --all-files
fmt:
# language-specific formatter command
Template for the target repo:
# <Repo Name>
## Overview
<brief description from README or scan>
## Repository Structure
<key directories and their purpose>
## Key Commands
| Task | Command |
|------|---------|
| Lint | `make lint` |
| Format | `make fmt` |
| Test | <detected test command> |
| Build | <detected build command> |
## Code Style
- <language> with <linter>
- Pre-commit hooks: `pre-commit install`
- Sign-off required: `git commit -s`
{
"permissions": {
"allow": [
"Bash(git status:*)",
"Bash(git log:*)",
"Bash(git diff:*)",
"Bash(git branch:*)",
"Bash(ls:*)",
"Bash(cat:*)",
"Bash(find:*)",
"Bash(make lint:*)",
"Bash(make fmt:*)",
"Bash(pre-commit run:*)"
]
}
}
Create branch in the target repo:
git -C .repos/<target> checkout -b orchestrate/precommit
git -C .repos/<target> diff --stat | tail -1
Target ~600-700 lines. Split if over 700.
Include initial skills in .claude/skills/ within the target repo:
repo:commit — commit message conventions adapted for the targetgit -C .repos/<target> add -A
git -C .repos/<target> commit -s -m "feat: add pre-commit hooks, linting, and Claude Code setup"
git -C .repos/<target> push -u origin orchestrate/precommit
gh pr create --repo org/repo --title "Add pre-commit hooks and code quality baseline" --body "Phase 2 of repo orchestration. Adds pre-commit hooks, linting config, CLAUDE.md, and .claude/ setup."
Update /tmp/rossoctl/orchestrate/<target>/phase-status.md:
completeorchestrate — Parent routerorchestrate:scan — Provides tech stack detectionorchestrate:plan — Defines precommit phase tasksorchestrate:tests — Next phase: test infrastructure还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Authentication and authorization patterns for Rossoctl services
中文简介正在准备中。当前显示原文说明。
Create confidential OAuth2 clients in Keycloak for server-to-service authentication
中文简介正在准备中。当前显示原文说明。
Configure MLflow with mlflow-oidc-auth plugin for Keycloak OIDC authentication
中文简介正在准备中。当前显示原文说明。
Configure OpenTelemetry Collector with OAuth2 authentication for trace export
中文简介正在准备中。当前显示原文说明。
CI pipeline monitoring, status checks, and PR validation workflows
中文简介正在准备中。当前显示原文说明。
Monitor running CI jobs, wait for completion, create tasks for results
中文简介正在准备中。当前显示原文说明。