Imported from ibm-granite-community/granite-cli (AGENTS.md). Install upstream with npx skills add ibm-granite-community/granite-cli. Copyright stays with the author.
Project Practices
Avoid adding new dependencies if an existing dependency or standard library could serve the same function
Use the minimal visibility scoping for every function (only pub if necessary, crate-pub unless full pub necessary)
When laying out a source file, organize it as follows:
use directives
Public functions/structs/enums/etc (mark with /*-- public --*/ to begin section)
Private functions/structs/enums/etc (mark with /*-- private --*/ to begin seciton)
Tests (mark with /*-- tests --*/ to begin seciton)
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/ibm-granite-community-granite-cli-granite-cli/manifest # or paste the manifest below
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": "ibm-granite-community-granite-cli-granite-cli",
"kind": "skill",
"name": "granite-cli",
"description": "Project Practices",
"publisher": "ibm-granite-community",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-agents"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Project Practices"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-agents",
"repository": "https://github.com/ibm-granite-community/granite-cli",
"path": "AGENTS.md",
"ref": "351783278e3930275ab317bf52ed8b9037126ab0",
"url": "https://github.com/ibm-granite-community/granite-cli/blob/351783278e3930275ab317bf52ed8b9037126ab0/AGENTS.md",
"key": "ibm-granite-community/granite-cli/AGENTS.md"
}
},
"instructions": "## Project Practices\n\n- Avoid adding new dependencies if an existing dependency or standard library could serve the same function\n- Use the minimal visibility scoping for every function (only `pub` if necessary, crate-pub unless full pub necessary)\n- When laying out a source file, organize it as follows:\n 1. `use` directives\n 2. Public functions/structs/enums/etc (mark with `/*-- public --*/` to begin section)\n 3. Private functions/structs/enums/etc (mark with `/*-- private --*/` to begin seciton)\n 4. Tests (mark with `/*-- tests --*/` to begin seciton)",
"cost": {
"context_tokens": 142
}
}
Fetch it by URL: GET /api/v1/registry/ibm-granite-community-granite-cli-granite-cli/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.