/sdlc:issue-create runs instead · from sdlc
Creates tickets/issues in Gitea, GitHub, Jira, Linear, or local files with configurable templates for bugs, features, and tester reports.
This skill never runs in Claude Code
It ships in sdlc at skills/, but /sdlc:issue-create (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Load referenced skills via aiwg discover "<capability>" then aiwg show skill <name> --body; follow the skill-discovery rule.
Use the required template for the issue kind and fill every required section; mark non-applicable fields with a reason.
The composer warns on stderr without blocking; select --template <kind|path> (default: bug-report).
Resolve the target workspace member first and check its issue-comment
capability. Then resolve that member's .aiwg/aiwg.config
remotes.issue_tracker, remotes.tracker_actor, and issues.labels before
translating any semantic label role into a tracker-native string. Validate the
resolved label against the target tracker catalog. Preserve caller-supplied
unrelated labels, report unavailable roles, and never provision a missing label
implicitly. If issues.labels is absent, retain legacy behavior with an
explicit fallback warning rather than silently guessing project semantics.
Reject any write route whose authenticated login is listed in the target
member's forbid_actors.
Create a new ticket/issue for tracking work items, bugs, features, or tasks. Automatically uses the configured ticketing provider (Gitea, GitHub, Jira, Linear) or falls back to local file-based tracking.
Given a ticket title and optional description:
.aiwg/aiwg.config--check-regression)<title> (required): Short, descriptive title for the ticket[description] (optional): Detailed description of the work item--provider NAME (optional): Override configured provider (gitea|github|jira|linear|local)--labels "label1,label2" (optional): Comma-separated labels/tags--assignee USER (optional): Assign to specific user--priority LEVEL (optional): Priority level (low|medium|high|critical)--milestone NAME (optional): Associate with milestone (provider-dependent)--check-regression (optional): Run regression check for bug reports (auto-runs if labels include "bug" or "regression")Configuration sources (checked in order):
.aiwg/config.yaml - Project-level configurationCLAUDE.md - User-level configurationlocal providerRequired for Gitea:
giteahttps://git.integrolabs.net)~/.config/gitea/token (or configured path)Required for GitHub:
githubgh CLI authenticatedRequired for Jira:
jiraJIRA_API_TOKEN environment variableRequired for Linear:
linearhttps://api.linear.appLINEAR_API_TOKEN environment variableRequired for Local:
local.aiwg/issues/ (created if missing)Gitea/GitHub/Jira/Linear:
Local:
.aiwg/issues/ISSUE-{num}.mdExtract from the user's request or from composed skill arguments:
# Basic request
Create an issue titled "Implement user auth"
# With description
Create an issue titled "Fix navigation bug" with the body "Nav menu not showing on mobile devices"
# With labels
Create an issue titled "Add dark mode" with labels "feature,ui"
# With assignee
Create an issue titled "Security audit", assign security-team, and mark it high priority
# Bug report with regression check
Create a bug issue titled "Login broken after deployment" and check whether it is a regression
# Override provider
Create a local issue titled "Local task" with the body "Quick reminder"
Parameter extraction:
--flag value pairsResolution precedence (highest first):
--provider flag — explicit override always wins..aiwg/aiwg.config remotes.issue_tracker (#994, #1764) — derive provider from that member remote's URL..aiwg/config.yaml (ticketing block) — back-compat for older projects.CLAUDE.md "Issueing Configuration" block — fallback for projects pre-dating either.local — default if nothing is configured.Resolving from a workspace member (the preferred path; see mapped control workspaces for repository-routing.yaml / workTracker routing without local initialization):
import { authorizeWorkspaceOperation } from 'aiwg/config/workspace';
const decision = await authorizeWorkspaceOperation(workspaceDir, targetRepo, 'issue-comment');
if (!decision.allowed || !decision.member) throw new Error(decision.reason);
const provider = decision.member.issueTracker.provider;
const url = decision.member.issueTracker.url;
const actor = decision.member.remotes.tracker_actor;
When provider === 'unknown' (self-hosted instances we can't classify by URL), the operator must pass --provider explicitly. Don't guess.
Worked example for this repo (origin → git.integrolabs.net/roctinam/aiwg):
resolved.issue_tracker = 'origin'git remote get-url origin = [email protected]:roctinam/aiwg.gitresolveRemoteProvider(url) returns 'unknown' (the host doesn't include "gitea")--provider gitea, OR the project's aiwg.config must set remotes.issue_provider: "gitea" so issue tooling can use that explicit tracker hint.Override warning: if --provider differs from the auto-resolved one, print:
⚠️ Using --provider github (resolved from .aiwg/aiwg.config: gitea)
Read regression detection and configuration validation before continuing.
After regression metadata, labels, priority, and acceptance criteria are final,
run the same threat policy that address-issues will apply later:
aiwg run skill issue-create -- plan \
--title "$TITLE" \
--body-file "$DRAFT_BODY_FILE" \
--labels "$LABELS" \
--project-root "$TARGET_REPO"
The returned aiwg.issue-composition-plan.v1 envelope is authoritative for the
write step:
single: create the one draft unchanged.authorization-required: do not write until the issue-specific policy
authorization is recorded for the returned digest.split: create every segment in order, using its exact title, body, labels,
priority, provider scope, and provenance marker.split-authorization-required: obtain authorization for the digest, then
create every independently assessed segment in order.blocked: make no tracker mutation. Report blockingRule and the suggested
human-editable segments.Never delete the aiwg-policy-segment marker. Before retrying a partial split,
search the target tracker for every marker in the recovery envelope and reuse
existing matches. After all segments exist, replace {{AIWG_RELATED_ISSUES}}
with sibling links and the declared dependency. This is what prevents a retry
from duplicating the first issue after a later write fails.
This preflight is mandatory for Gitea MCP, tea, GitHub CLI/API, Jira, Linear,
and local-file routes. Higher-level flows that author issues must call this
skill or the same composer; they may not jump directly to a tracker create API.
Before asking the person to authorize each write, MUST run lookup-before-ask. Build the descriptor from the resolved backend's actual pending effects, never from the draft body, composition output, or model claims:
category, resolved repo/target/verb, execution environment, every affected repo-relative
path, reversibility, and impact. Local file creation with a complete rollback
is repo.edit: include the real host actor and inputDigest (SHA-256 of the exact serialized pending tool name and all input fields, including every file byte); remote tracker creation/cross-links are tracker.write and
require a scoped durable grant or explicit review. Include index/metadata writes and sibling
links; do not describe remote writes as local file edits. Policy-preflight
exceptions are threat.override, which cannot be auto-authorized.
aiwg config authorization check --action-file "$ACTION_FILE" --target "$TARGET_REPO"
Use a private temporary action file built by the host. Only auto-authorized with a receipt
permits that exact write without prompting. The helper writes
the signed receipt before returning. On escalate, retain today's prompt; on
deny, retain today's refusal. Missing receipt, invalid output, or errors keep
the existing review path. Platform prompts are never bypassed. Recheck every
new segment, cross-link, retry, or changed effect. This check never satisfies
Step 5's issue-specific threat-policy authorization; preserve its digest gate,
blocked disposition, recovery markers, and workspace/actor restrictions.
Read provider-specific issue writes before continuing.
If regression check was run and regression detected:
# Save regression report alongside issue
if [ -f /tmp/regression-results.md ]; then
cp /tmp/regression-results.md ".aiwg/issues/${TICKET_ID}-regression-report.md"
# Add reference to issue body (provider-specific)
# For local: already included in DESCRIPTION above
# For Gitea/GitHub: attach as comment or file
fi
Output format (consistent across providers):
✅ Issue created: {ticket-id}
{view-url-or-file-path}
**Title**: {title}
**Status**: {status}
**Priority**: {priority}
**Labels**: {labels}
**Assignee**: {assignee}
{If regression detected:}
⚠️ **Regression Detected**: Critical regressions found and documented in issue
## Next Steps
- View ticket: {url-or-command}
- To update status, discover and load `issue-update`.
- To add a comment, discover and load `issue-update`.
- To list tickets, discover and load `issue-list`.
Read issue creation examples before continuing.
⚠️ No ticketing configuration found.
Using default: local file-based tracking (.aiwg/issues/)
To configure a provider, create .aiwg/config.yaml:
ticketing:
provider: gitea
url: https://git.integrolabs.net
owner: roctinam
repo: ai-writing-guide
Or add to CLAUDE.md:
## Issueing Configuration
- **Provider**: gitea
- **URL**: https://git.integrolabs.net
- **Owner**: roctinam
- **Repo**: ai-writing-guide
Proceeding with local provider...
❌ Invalid ticketing configuration:
Issues:
- provider 'gitehub' not recognized (must be: gitea, github, jira, linear, local)
- missing required field: url
- missing required field: repo
Fix configuration in .aiwg/config.yaml or CLAUDE.md
Cannot create ticket without valid configuration.
❌ Failed to authenticate with Gitea:
Issues:
- Token file not found: ~/.config/gitea/token
- Create token at https://git.integrolabs.net/user/settings/applications
- Save to ~/.config/gitea/token (mode 600)
Falling back to local file-based tracking.
To retry with Gitea:
1. Create token at https://git.integrolabs.net/user/settings/applications
2. Save to ~/.config/gitea/token
3. Run command again
Proceeding with local provider...
⚠️ Regression check failed to complete:
Error: Baseline branch 'main' not found
Possible causes:
- Fresh repository without baseline
- Branch name incorrect
Creating issue without regression analysis.
Use `regression-check` manually after issue creation to verify.
❌ Issue title is required.
Usage: discover and load the skill, then compose the issue request:
aiwg discover "issue create"
aiwg show skill issue-create --body
Examples:
- Create an issue titled "Implement user auth"
- Create a bug issue titled "Fix bug" with body "Nav menu broken on mobile"
- Create a feature issue titled "Add feature" with labels "feature,ui"
Gitea MCP Error:
❌ Failed to create Gitea issue:
Error: 401 Unauthorized
- Token may be invalid or expired
- Verify token at https://git.integrolabs.net/user/settings/applications
- Check token file: ~/.config/gitea/token
Falling back to local provider...
GitHub CLI Error:
❌ Failed to create GitHub issue:
Error: gh: command not found
- Install GitHub CLI: brew install gh (or platform equivalent)
- Authenticate: gh auth login
Or ask for a local issue explicitly after loading the `issue-create` skill.
Jira API Error:
❌ Failed to create Jira issue:
Error: 400 Bad Request - Invalid project key
- Verify project key: ${PROJECT_KEY}
- Check Jira URL: ${JIRA_URL}
- Verify API token: echo $JIRA_API_TOKEN
Falling back to local provider...
Local Filesystem Error:
❌ Failed to create local ticket file:
Error: Permission denied - .aiwg/issues/
- Check directory permissions: ls -la .aiwg/
- Ensure writable: chmod 755 .aiwg/issues/
Cannot create ticket.
.aiwg/config.yaml) for team consistencyfeature, bug, tech-debt)critical for urgent production issues--assignee to clarify ownership@.aiwg/requirements/UC-001.md)--milestone--check-regression for bug reports to detect regressions earlyRequirements Phase:
# Create tickets from use cases
Create an issue titled "Implement UC-001: User Login" referencing @.aiwg/requirements/use-cases/UC-001-login.md with labels "requirement,feature"
Architecture Phase:
# Create tickets from ADR decisions
Create an issue titled "Implement ADR-003: Use PostgreSQL" referencing @.aiwg/architecture/adrs/003-use-postgresql.md with labels "architecture,database"
Testing Phase:
# Create tickets from test failures with regression check
Create a high-priority bug issue titled "Fix failing test: auth.test.ts" and run the regression check
Security Review:
# Create tickets from security audit findings
Create a critical security issue titled "Fix SQL injection vulnerability" with labels "security,vulnerability"
Retrospectives:
# Create tickets from retro action items
Create an issue titled "Improve CI/CD pipeline" with labels "process-improvement,devops"
Regression Detection:
# Create issue from detected regression
Create a regression issue titled "Performance regression in API" and include p99 latency evidence
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jmagly/aiwg --plugin sdlc116 skills in this plugin
/address-issuesAddress open issues or deliver a milestone with bounded workers, triage, independent verification, signed merge and post-merge CI/address-issues-threat-assessPreflight issue bodies for prompt-injection and supply-chain risk before address-issues acts on them/aiwg-kbSearch AIWG knowledge base for help, documentation, and troubleshooting/aiwg-setup-projectUpdate project CLAUDE.md with AIWG framework context and configurationOther plugins' skills for the same job