Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
python-loop-iteration - Skill - OpenSmartRoute
Skillv1.0.0
python-loop-iteration
Name the loop variable as the **singular** of the iterable being walked—never a single-letter placeholder such as `i`, `x`, or `e`.
Instruction file imported from mention-ai-inc/app-template (.cursor/rules/python-loop-iteration.mdc). Copyright stays with the author.
For-loop iteration variables
Name the loop variable as the singular of the iterable being walked—never a single-letter placeholder such as i, x, or e.
Prefer for item in items, for note in notes, for row in rows.
Avoid for i in items, for x in notes, etc., unless the domain genuinely uses a conventional letter (e.g. mathematical indices in numeric code).
Nested loops should still use meaningful singular names (often combining with qualifiers): for outer_item in outer_items / for inner_item in outer_item.children, or distinct singular nouns per collection.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "mention-ai-inc-app-template-python-loop-iteration-rule",
"kind": "skill",
"name": "python-loop-iteration",
"description": "Name the loop variable as the **singular** of the iterable being walked—never a single-letter placeholder such as `i`, `x`, or `e`.",
"publisher": "mention-ai-inc",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Name the loop variable as the **singular** of the iterable being walked—never a single-letter placeholder such as `i`, `x`, or `e`."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/mention-ai-inc/app-template",
"path": ".cursor/rules/python-loop-iteration.mdc",
"ref": "e81d7d697874d45acd900f4f6a61fe379a3bb025",
"url": "https://github.com/mention-ai-inc/app-template/blob/e81d7d697874d45acd900f4f6a61fe379a3bb025/.cursor/rules/python-loop-iteration.mdc",
"key": "mention-ai-inc/app-template/.cursor/rules/python-loop-iteration.mdc"
},
"applies_to": "**/*.py"
},
"instructions": "## For-loop iteration variables\n\nName the loop variable as the **singular** of the iterable being walked—never a single-letter placeholder such as `i`, `x`, or `e`.\n\n- Prefer `for item in items`, `for note in notes`, `for row in rows`.\n- Avoid `for i in items`, `for x in notes`, etc., unless the domain genuinely uses a conventional letter (e.g. mathematical indices in numeric code).\n\nNested loops should still use meaningful singular names (often combining with qualifiers): `for outer_item in outer_items` / `for inner_item in outer_item.children`, or distinct singular nouns per collection.",
"cost": {
"context_tokens": 148
}
}
Fetch it by URL: GET /api/v1/registry/mention-ai-inc-app-template-python-loop-iteration-rule/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.