Skip to content

Commit c3d4d0b

Browse files
feat(huawei-cloud-account-onboarding): scaffold empty real-name onboarding skill
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 059ca89 commit c3d4d0b

6 files changed

Lines changed: 106 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# huawei-cloud-account-onboarding QA
2+
3+
Per-skill quality gate. Run `validate.sh` locally and in CI via
4+
`tools/validate-all.sh`.
5+
6+
## Layout
7+
8+
```text
9+
qa/huawei-cloud-account-onboarding/
10+
├── validate.sh # entry point (required)
11+
├── README.md
12+
├── evals/evals.json # Skill Creator eval cases
13+
├── assertions/README.md # assertion rubric for eval authors
14+
├── fixtures/ # optional: contract YAML, golden files
15+
└── bin/ # optional: helper scripts
16+
```
17+
18+
Add `fixtures/` and `bin/` when a skill needs cross-layer checks beyond
19+
`skills-ref`, markdownlint, and skillcheck.
20+
21+
## Commands
22+
23+
```bash
24+
./qa/huawei-cloud-account-onboarding/validate.sh
25+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Assertions
2+
3+
Define objective checks for Skill Creator runs. Copy assertions into each eval in `../evals/evals.json`.
4+
5+
Include interaction-discipline cases when the skill has routing or scope decisions:
6+
7+
- User already stated scope, billing cycle, or read-only intent → agent proceeds without re-asking.
8+
- Blocking ID missing (partner customer, full order id) → one clarifying question, not a questionnaire.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"skill_name": "huawei-cloud-account-onboarding",
3+
"evals": []
4+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env bash
2+
# 通用 skill QA 模板:布局 + skills-ref + markdownlint + skillcheck。
3+
set -euo pipefail
4+
5+
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
6+
QA_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7+
SKILL_DIR="$(cd "$QA_DIR/../../skills/huawei-cloud-account-onboarding" && pwd)"
8+
9+
fail() { printf 'FAIL: %s\n' "$1" >&2; exit 1; }
10+
need_cmd() { command -v "$1" >/dev/null 2>&1 || fail "missing command: $1"; }
11+
12+
run_local_or_npx() {
13+
local bin=$1; shift
14+
if command -v "$bin" >/dev/null 2>&1; then "$bin" "$@"
15+
else need_cmd npx; npx "$bin" "$@"; fi
16+
}
17+
18+
# skill 安装包纯度:不含 eval/qa/.workspaces 等
19+
check_skill_layout() {
20+
[[ -f "$SKILL_DIR/SKILL.md" ]] || fail "missing SKILL.md"
21+
[[ -f "$QA_DIR/README.md" ]] || fail "missing QA README"
22+
local item
23+
local forbidden=(.DS_Store .agents analysis evals qa scripts tests .workspaces)
24+
for item in "${forbidden[@]}"; do
25+
[[ ! -e "$SKILL_DIR/$item" ]] || fail "forbidden in skill dir: $item"
26+
done
27+
local sibling
28+
for sibling in "$SKILL_DIR"/*-workspace; do
29+
[[ -e "$sibling" ]] || continue
30+
fail "Skill Creator workspace belongs at repo root, not skills/: $(basename "$sibling")"
31+
done
32+
[[ -f "$QA_DIR/evals/evals.json" ]] || fail "missing evals file: $QA_DIR/evals/evals.json"
33+
[[ -f "$QA_DIR/assertions/README.md" ]] || fail "missing assertions guide"
34+
[[ ! -f "$QA_DIR/evals.json" ]] || fail "duplicate eval source: $QA_DIR/evals.json"
35+
}
36+
37+
need_cmd rg
38+
check_skill_layout
39+
run_local_or_npx skills-ref validate "$SKILL_DIR"
40+
run_local_or_npx markdownlint-cli2 "$SKILL_DIR/**/*.md"
41+
need_cmd skillcheck
42+
skillcheck "$SKILL_DIR" --target-agent cursor --strict-cursor --min-desc-score 70
43+
44+
printf 'OK: huawei-cloud-account-onboarding validation passed\n'
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: huawei-cloud-account-onboarding
3+
description: Replace with what the skill does and when to trigger it. Use action verbs and task keywords agents can match.
4+
license: Apache-2.0
5+
compatibility: List required tools, network, or IAM here.
6+
metadata:
7+
author: ontology-of-everything
8+
version: "0.1.0"
9+
---
10+
11+
# Skill title
12+
13+
Brief instructions. Move detailed reference material to `references/`.
14+
15+
## Agent discipline
16+
17+
Path-changing ambiguity only; no re-asks on stated or settled facts; proceed when
18+
context suffices; one blocking question when user judgment is required. Mandatory
19+
domain clarifiers (scope, time, IDs) still apply—never as a questionnaire.
20+
21+
## References
22+
23+
| Topic | File |
24+
| --- | --- |
25+
| Example | `references/example.md` |

skills/huawei-cloud-account-onboarding/references/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)