Validates that all TypeSpec route operations in the AI Foundry data-plane (Foundry) domain have documentation comments and @summary decorators with correct voice. USE FOR: reviewing or authoring routes.tsp files under specification/ai-foundry/data-plane/Foundry/src/. DO NOT USE FOR: files outside the Foundry data-plane area, model-only .tsp files, or SDK client customization files (client.tsp).
80
100%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Ensures every TypeSpec route operation in the AI Foundry data-plane (Foundry) area has
proper documentation comments and @summary decorator tags, using the correct grammatical
voice for each.
This skill applies only to files matching:
specification/ai-foundry/data-plane/Foundry/src/**/routes.tspIt does not apply to:
models.tsp, client.tsp, client.*.tsp, or main.tsp files.tsp files outside specification/ai-foundry/data-plane/Foundry/openapi3/Do not modify documentation that is already substantially correct. Only flag and fix operations that have an explicit, significant rule violation:
@summary() or doc comment entirely → fix@summary using third-person, or doc comment using imperative) → fix@doc() instead of a TSDoc /** ... */ comment → fixWhen in doubt, leave the existing text alone.
Every operation defined inside an interface block in a routes.tsp file must satisfy
all of the following requirements. See route-documentation-rules.md
for the full rule definitions, examples, and remediation guidance.
| Rule ID | Requirement |
|---|---|
FDOC-001 | Every operation must have a TSDoc /** ... */ comment. Prefer TSDoc over @doc(). |
FDOC-002 | Every operation must have a @summary() decorator — no exceptions |
FDOC-003 | The TSDoc description must use third-person indicative voice ("Creates an agent"), must add meaningful detail beyond the summary, and must not be near-identical to the summary. |
FDOC-004 | @summary() must be a maximally concise imperative phrase ("Create an agent"). No trailing period. No filler ("all", "by ID", "info about"). Must not be truncated. Always include articles. |
FDOC-005 | Each @path, @query, @header, and @body parameter must have a doc comment or @doc() |
After applying fixes to any routes.tsp file, always run the following steps in order:
Run tsp format on the changed files to ensure consistent formatting:
npx tsp format specification/ai-foundry/data-plane/Foundry/src/**/routes.tspRecompile the project to regenerate both JSON and YAML OpenAPI outputs under openapi3/.
Do not modify tspconfig.yaml — it already emits both file types via file-type: [yaml, json].
cd specification/ai-foundry/data-plane/Foundry
npx tsp compile .Verify that the files under openapi3/{version}/ are updated for every versioned output.
routes.tsp files under specification/ai-foundry/data-plane/Foundry/src/interface block and enumerate its operationsFDOC-001 through FDOC-005tsp format on all modified filestsp compile . to regenerate JSON and YAML OpenAPI artifactsReport results as a markdown table:
| File | Operation | Rule | Finding |
| ---- | --------- | ---- | ------- |
| src/connections/routes.tsp | get | FDOC-002 | Missing `@summary()` decorator |If all operations pass, report: ✅ All Foundry route operations are fully documented.
b0960d6
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.