Agent skill
locque-authoring
Author or update Locque .lq code and tests with the canonical M-expr syntax, CBPV rules, data/match forms, modules/imports/opens, and project conventions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/locque-authoring
SKILL.md
Locque authoring
Use this skill when writing or editing Locque source or tests.
Sources of truth
grammar.mddefines the canonical syntax and S-expr mapping.AGENTS.mdlists project conventions and tooling.
Workflow
- Prefer
.lqM-expr files; do not handwrite.lqs. - Keep paths lowercase. Every
lib/**file must have a matchingtest/**file. - Use
Module::namequalification;open Alias exposing ... endis explicit only. - Effects are explicit: computations are values via
compute ... end, run viaperform. - Multiline constructs must end with
end(function,compute,bind,match,data,typeclass,instance,module,open,pack,unpack). - Data:
define ... as data ... in TypeN ... endwith constructorsType::Ctor; match usescase Type::Ctor. - No implicit coercions; use
of-type,lift,up,down,pack,unpackas needed. - Use
ignoredinstead of_for unused binders. - List literals are canonical:
[]and[a, b](commas required). Empty lists requireof-type [] (List A)when no expected list type is in scope.
Test conventions
- Use
assert::assert-eqwith an explicit type argument. - Run
smyth testafter changes.
Templates
Function:
# Assumes: import arithmetic as Ar
define transparent inc as
function x Natural returns Natural value
Ar::add x 1
end
Data:
define transparent Option as data A Type0 in Type0
case Option::none of-type Option A
case Option::some of-type for-all x as A to Option A
end
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?