Initialize onus configuration for a project
Sets up work item tracking configuration for a project with auto-detected git repository details.
/plugin marketplace add flexion/claude-domestique/plugin install onus@claude-domestique[--platform github|jira|azure] [--force]Set up .claude/config.json with onus configuration for work item tracking.
Before creating config, analyze recent commits to detect existing conventions:
git log --oneline -30
Look for these common patterns:
| Pattern | Example | Format String |
|---|---|---|
| Issue number prefix | #42 - add feature | {number} - {description} |
| Conventional commits | feat(auth): add login | {type}({scope}): {description} |
| JIRA style | [PROJ-123] fix bug | [{project}-{number}] {description} |
| Semantic | fix: resolve issue | {type}: {description} |
| Chore prefix | chore - update deps | chore - {description} |
If a clear pattern emerges (>50% of commits), note it for Step 3.
Run the init script to create base configuration:
node "$(node -p "require(process.env.HOME + '/.claude/plugins/installed_plugins.json').plugins['onus@claude-domestique'][0].installPath")/scripts/init.js"
The script auto-detects GitHub owner/repo from the git remote.
Specify the work item platform (defaults to github):
.claude/config.json with onus section{
"onus": {
"platform": "github",
"github": {
"owner": "<detected>",
"repo": "<detected>"
},
"commitFormat": {
"issue": "{number} - {verb} {description}",
"chore": "chore - {description}"
},
"branchFormat": {
"issue": "issue/{type}-{number}/{slug}",
"chore": "chore/{slug}"
}
}
}
If Step 1 detected a different commit pattern, update .claude/config.json:
Conventional Commits detected:
"commitFormat": {
"issue": "{type}({scope}): {description} (#{number})",
"chore": "chore: {description}"
}
JIRA style detected:
"commitFormat": {
"issue": "[{project}-{number}] {description}",
"chore": "chore: {description}"
}
No clear pattern: Keep the defaults - they follow common GitHub conventions.
--force - Overwrite existing onus config--platform <name> - Set work item platform (github, jira, azure)For JIRA or Azure DevOps, manually edit .claude/config.json to add:
JIRA:
"jira": {
"host": "your-company.atlassian.net",
"project": "PROJ"
}
Azure DevOps:
"azure": {
"org": "your-org",
"project": "your-project"
}
"Configuration already exists"
--force to overwrite.claude/config.jsonOwner/repo not detected
git remote get-url origin returns a valid URL