Ecc Conventions
affaan-m/ECC
Development conventions and patterns for ECC. An agent skill from affaan-m/ECC.
How pyqula raises errors -- which exception type for which failure, the registries behind string-selected options (mode=, solver=, channel=, operator names), and the shared Hilbert-space guards in…
$ npx skills add joselado/pyqula --skill error-conventions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install joselado/pyqula error-conventions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/joselado/pyqula.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/error-conventions .claude/skills/error-conventions && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "error-conventions" agent skill from https://github.com/joselado/pyqula/tree/master/.claude/skills/error-conventions into .claude/skills/error-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "error-conventions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/joselado/pyqula/tree/master/.claude/skills/error-conventionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add joselado/pyqula --skill error-conventions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install joselado/pyqula error-conventions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/joselado/pyqula.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/error-conventions .agents/skills/error-conventions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "error-conventions" agent skill from https://github.com/joselado/pyqula/tree/master/.claude/skills/error-conventions into .agents/skills/error-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "error-conventions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add joselado/pyqula --skill error-conventions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install joselado/pyqula error-conventions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/joselado/pyqula.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/error-conventions .cursor/skills/error-conventions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "error-conventions" agent skill from https://github.com/joselado/pyqula/tree/master/.claude/skills/error-conventions into .cursor/skills/error-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "error-conventions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/joselado/pyqula.git --path .claude/skills/error-conventions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add joselado/pyqula --skill error-conventions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install joselado/pyqula error-conventions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/joselado/pyqula.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/error-conventions .gemini/skills/error-conventions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "error-conventions" agent skill from https://github.com/joselado/pyqula/tree/master/.claude/skills/error-conventions into .gemini/skills/error-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "error-conventions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install joselado/pyqula error-conventionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add joselado/pyqula --skill error-conventions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/joselado/pyqula.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/error-conventions .github/skills/error-conventions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "error-conventions" agent skill from https://github.com/joselado/pyqula/tree/master/.claude/skills/error-conventions into .github/skills/error-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "error-conventions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add joselado/pyqula --skill error-conventions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install joselado/pyqula error-conventions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/joselado/pyqula.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/error-conventions .opencode/skills/error-conventions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "error-conventions" agent skill from https://github.com/joselado/pyqula/tree/master/.claude/skills/error-conventions into .opencode/skills/error-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "error-conventions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
error-conventionsHow pyqula raises errors -- which exception type for which failure, the registries behind string-selected options (mode=, solver=, channel=, operator names), and the shared Hilbert-space guards in…
Error Conventions is an agent skill from joselado/pyqula. How pyqula raises errors -- which exception type for which failure, the registries behind string-selected options (mode=, solver=, channel=, operator names), and the shared Hilbert-space guards in check.py. Load this before writing any raise statement in src/pyqula, before adding or changing an option selected by a string, and before writing a guard that checks whether a Hamiltonian is spinful, has Nambu or has a sublattice -- the package went through a deliberate sweep to reach this state and a hand-written…
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Python library to compute properties of quantum tight binding models, including topological, electronic and magnetic properties and including the effect of many-body interactions. The licence is GPL-3.0.
Read from SKILL.md and the folder at commit a61709a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Error Conventions loads about 1.1k tokens when it runs. Until then it costs about 165 tokens; SKILL.md has 452 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from joselado/pyqula at commit a61709a, republished under its GPL-3.0 licence (© joselado). 452 words, ~1,057 tokens.
.claude/skills/error-conventions/SKILL.md (or your agent's skills folder).Argument and Hilbert-space guards raise a real exception with a message saying what the
routine requires: ValueError for a bad input value or a Hamiltonian in the wrong
Hilbert space, NotImplementedError for a combination that is simply not built yet,
TypeError for a wrong type.
Neither should come back:
raise, which surfaces as RuntimeError: No active exception to reraise and
names neither the input nor the requirementraise NotImplementedError, which names the category but not what is unsupportedWhere a guard's message can name the offending value -- the mode string, the two mismatched sizes, the type that was passed -- it does, rather than printing it and raising separately.
raise count is nineThe only bare raise left in src/pyqula is the jump-to-except idiom inside a try
body (five sites), where it is control flow rather than an error report, plus four
ordinary re-raises inside except handlers, which re-raise a live exception and are not
the message-less form at all. An AST walk therefore finds nine bare raise nodes in the
package. Nine is the expected count, not a regression:
python -c "
import ast,os
n=0
for root,d,fs in os.walk('src/pyqula'):
for f in fs:
if not f.endswith('.py'): continue
for node in ast.walk(ast.parse(open(os.path.join(root,f)).read())):
if isinstance(node,ast.Raise) and node.exc is None: n+=1
print(n)"An option selected by a string (mode=, solver=, channel=, an operator name) lists
the accepted values in the error, so that a typo is self-diagnosing.
Five dispatches go one step further and keep their names in a registry, so the accepted
set can be enumerated and adding a name is one dict entry rather than a new elif
branch. What matters is that the advertised list is derived from the registry instead
of being a second list maintained by hand beside the chain -- that is what stops the two
from drifting, which is the failure this shape exists to prevent:
| dispatch | registry | names |
|---|---|---|
| named operators | operatorlist.py | operatorlist.get_operator_names() |
mean-field guesses (mf=) | meanfield.py | meanfield.get_guess_names() |
pairing symmetries (mode=) | sctk/pairing.py | pairing.get_pairing_modes() |
| high-symmetry kpoint labels | kpointstk/labels.py | labels.get_label_names() |
h.extract(name) quantities | extract.py | extract.get_extractable_names() |
A new string-selected option should follow that shape rather than adding an elif.
These go through three shared guards in check.py:
require_spin(h,what)require_nambu(h,what)require_sublattice(h,what)where what is the noun phrase the message opens with ("an exchange field",
"the d-vector"). They supply the fixed tail naming the remedy (h.turn_spinful(),
h.setup_nambu_spinor()), so a new routine does not reinvent either the wording or the
fix. Use them instead of a hand-written
raise ValueError("... needs a spinful Hamiltonian").
Two families of guard carry more information than the generic one and are deliberately
left as they are: the check_mode("spinful_nambu") family, which names both flags'
values, and the local Hubbard-U guard, which points at the spinless V1/V2/V3/Vr
alternative. When a specific message says more than the shared one would, keep it.
© joselado, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/error-conventions of joselado/pyqula.
Open the folder on GitHubat commit a61709a
Error Conventions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Error Conventions this skilljoselado/pyqula | 145 | — | ~1.1k | Automated safety check: Pass | GPL-3.0 | |
| Ecc Conventionsaffaan-m/ECC | 275k | — | ~2.8k | Automated safety check: Pass | MIT | |
| Logistics Exception Managementaffaan-m/ECC | 275k | 4 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Raisely AutomationComposioHQ/awesome-claude-skills | 77k | 3 repos | ~730 | Automated safety check: Pass | None | |
| Naming Conventionsthedaviddias/Front-End-Checklist | 74k | — | ~481 | Automated safety check: Pass | MIT | |
| Conventional CommitJanDeDobbeleer/oh-my-posh | 24k | — | ~1.2k | Automated safety check: Notes | MIT |
affaan-m/ECC
Development conventions and patterns for ECC. An agent skill from affaan-m/ECC.
affaan-m/ECC
Codified freight-exception handling expertise for shipment delays, damages, losses, shortages, and carrier disputes, with escalation protocols, carrier-specific behaviors by mode, claims procedures…
ComposioHQ/awesome-claude-skills
Automate Raisely tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.
thedaviddias/Front-End-Checklist
A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Use consistent CSS naming conventions.
JanDeDobbeleer/oh-my-posh
Workflow for generating conventional commit messages following the Conventional Commits specification.
udecode/plate
Author and verify Plate registry changelog entries for user-visible registry UI, kit, example, and registry metadata changes.
joselado/pyqula
Refresh pyqula's documentation after a change - recount the test suite, propagate every number that moved, re-run the static user-guide checks, and rebuild documentation/userguide.pdf.
joselado/pyqula
The completeness checklist for adding a user-facing feature to pyqula - where the implementation goes, what kind of test it needs, and the five documentation surfaces that must move with it.
joselado/pyqula
pyqula's CPU/GPU switch (src/pyqula/gpu.py), how a routine is routed onto the device, per-call precision, and the tiered porting plan in documentation/gpuportingplan.md.
joselado/pyqula
The maintainer's writing voice for documentation/userguide.md -- the three registers (chapter prose, section intros, catalogue bullets), the spelling decisions, what not to write, and which chapters…
joselado/pyqula
pyqula's Wannierization (wanniertk/), what h.getwannierhamiltonian() returns, the disentanglement window keywords and which combinations raise NotImplementedError, and the bundled pure-Python…
How pyqula raises errors -- which exception type for which failure, the registries behind string-selected options (mode=, solver=, channel=, operator names), and the shared Hilbert-space guards in…. Error Conventions is an agent skill from joselado/pyqula.py.
Run `npx skills add joselado/pyqula --skill error-conventions -a claude-code`. Or copy the skill folder (.claude/skills/error-conventions in joselado/pyqula) into .claude/skills/error-conventions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add joselado/pyqula --skill error-conventions -a codex`. Or copy the skill folder (.claude/skills/error-conventions in joselado/pyqula) into .agents/skills/error-conventions in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add joselado/pyqula --skill error-conventions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/error-conventions, .gemini/skills/error-conventions, .github/skills/error-conventions and .opencode/skills/error-conventions in your project.
Going by SKILL.md and its folder, Error Conventions needs the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Error Conventions is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Error Conventions: Ecc Conventions (affaan-m/ECC, 275k stars), Logistics Exception Management (affaan-m/ECC, 275k stars), Raisely Automation (ComposioHQ/awesome-claude-skills, 77k stars) and Naming Conventions (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
joselado (a GitHub user) maintains it in joselado/pyqula, which has 145 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: joselado/pyqula on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.