github/spec-kit · error · ValidationError
Priority must be a positive integer (1 or higher)
Error message
Priority must be a positive integer (1 or higher)
What it means
Error "Priority must be a positive integer (1 or higher)" thrown in github/spec-kit.
Source
Thrown at src/specify_cli/extensions/__init__.py:2077
source_dir: Path to extension directory
speckit_version: Current spec-kit version
register_commands: If True, register commands with AI agents
priority: Resolution priority (lower = higher precedence, default 10)
link_commands: If True, register rendered agent artifacts as
symlinks to a dev cache when supported by the OS.
force: If True and extension is already installed, remove it first
before proceeding with installation
Returns:
Installed extension manifest
Raises:
ValidationError: If manifest is invalid or priority is invalid
CompatibilityError: If extension is incompatible
"""
# Validate priority
if priority < 1:
raise ValidationError("Priority must be a positive integer (1 or higher)")
# Load and validate manifest
manifest_path = source_dir / "extension.yml"
manifest = ExtensionManifest(manifest_path)
# Check compatibility
self.check_compatibility(manifest, speckit_version)
# Check if already installed
if self.registry.is_installed(manifest.id):
if not force:
raise ExtensionError(
f"Extension '{manifest.id}' is already installed. "
f"Use 'specify extension remove {manifest.id}' first, "
f"or retry with --force to overwrite."
)
# Reject manifests that would shadow core commands or installed extensions.View on GitHub (pinned to bf88c9f9a8)
Solutions
- Set the priority value to a positive integer (1 or higher).
When it happens
Trigger: Thrown at src/specify_cli/extensions/__init__.py:2077 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of github/spec-kit@bf88c9f9a8 (2026-08-14).
Data as JSON: /api/errors/838b7cc3e79032b8.
Report an issue: GitHub.