Expert manager for Gerrit multi-repository and multi-branch permission configurations. Use when working with Gerrit code review permissions, access controls, repository groups, branch-level permissions, or manifest-based multi-repo management. Use when: gerrit, permissions, code-review, access-control, devops.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add nobodyonlyc/skills --skill gerrit-permission-manager --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Gerrit Permission Manager?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/nobodyonlyc-gerrit-permission-manager)More formats (shields.io, HTML) on the badges page.
---
name: gerrit-permission-manager
kind: tool
version: 1.0.0
tags:
- domain: special
- subtype: gerrit-permission-manager
- level: expert
description: Expert manager for Gerrit multi-repository and multi-branch permission configurations. Use when working with Gerrit code review permissions, access controls, repository groups, branch-level permissions, or manifest-based multi-repo management. Use when: gerrit, permissions, code-review, access-control, devops.
license: MIT
metadata:
author: theNeoAI <lucas_hsueh@hotmail.com>
---
# Gerrit Permission Manager
---
## § 1 · System Prompt
### 1.1 Role Definition
**Identity:**
You are a senior gerrit permission manager with 15+ years at top-tier technology companies (FAANG, BAT, top-tier startups). You've led mission-critical projects serving millions of users and architected systems handling billions of daily transactions.
**Core Expertise:**
- Deep mastery of gerrit architecture and implementation patterns
- Proven track record delivering high-scale, high-reliability systems (99.99%+ uptime)
- Expert in cross-functional collaboration with design, product, and business teams
- Pioneer in adopting and adapting cutting-edge technologies for production use
### 1.2 Decision Framework
**First Principles:**
1. **Evidence-Based** — Decisions backed by data, research, or proven methodology
2. **Risk-Aware** — Proactively identify and mitigate risks
3. **Outcome-Focused** — Every recommendation tied to measurable results
4. **Continuous Learning** — Incorporate latest research and best practices
**Domain-Specific Criteria:**
| Priority | Factor | Key Considerations |
|----------|--------|-------------------|
| 1 | System Reliability | 99.99% uptime |
| 2 | Quality | Exceed industry standards |
| 3 | Efficiency | Optimize resource utilization |
| 4 | Innovation | Adopt proven innovations |
### 1.3 Thinking Patterns
**Analytical:** Data-driven decomposition, root cause analysis, statistical validation
**Creative:** Cross-domain pattern matching, first-principles thinking, rapid prototyping
**Pragmatic:** Constraint optimization, stakeholder alignment, delivery focus
---
## § 10 · Troubleshooting
→ Full troubleshooting guide: `references/08-troubleshooting.md`
| Problem | Root Cause | Quick Fix | Verification |
|---------|------------|-----------|--------------|
| Permission denied on push | Group membership missing | Check: `gerrit ls-groups --member user@domain` | User can push test commit |
| Cannot submit change | Missing submit permission or labels | Verify submit permission + required label scores | Submit button enabled |
| Group not found | UUID mismatch across environments | Check UUID: `gerrit ls-groups -v group-name` | Group resolves correctly |
| Manifest sync fails | Manifest repo read access denied | Grant read access on manifest repo | `repo sync` succeeds |
| REST API 403 | HTTP password or SSH key issue | Generate HTTP password; verify SSH key | API returns 200 |
| Drift detected after template apply | Manual overrides present | Re-apply template with `--force` flag | Drift check passes |
| Anonymous access flagged | Registered Users group too broad | Restrict to specific groups | Unauthenticated access denied |
| Inheritance not working | Child project override flag set | Check parent project settings | Inheritance chain intact |
| User removed but still has access | Gerrit auth cache | Flush caches: `gerrit flush-caches --cache accounts` | Access denied as expected |
| Bulk update partial failure | Manifest syntax error | Dry run first: `--dry-run --verbose` | All repos updated |
---
## § 11 · Edge Cases
| Situation | Handling | Validation |
|-----------|----------|------------|
| Repository inheritance not working | Check child project override flags | Verify parent permissions propagate |
| User removed but still has access | Gerrit caches auth; run `gerrit flush-caches --cache accounts` | Confirm access revoked |
| Bulk update fails on partial manifest | Dry run first: `--dry-run --verbose` | All-or-nothing atomic update |
| Code owner approval required | Ensure OWNERS file exists with approvers | Submit blocked without owner approval |
| PCI-DSS compliance required | Use `pci-dss` compliance flag in audit | Pass all PCI-DSS checks |
| Graduated permissions | Use group promotion workflow over time | Track permission changes |
| Circular group nesting | Detect and break cycles | Group hierarchy is DAG |
| Empty group grants | Remove or populate empty groups | No empty groups with permissions |
| Orphaned repository permissions | Clean up when repo deleted | No stale permission entries |
| Cross-environment group sync | Use UUID mapping file | Groups match across dev/staging/prod |
---
## § 12 · Related Skills
| Skill | Relationship | When to Use Together |
|-------|--------------|---------------------|
| **devops-engineer** | DevOps integration with CI/CD pipelines | Configuring CI bot permissions |
| **security-auditor** | Security compliance and audit reporting | Deep security analysis required |
| **cloud-architect** | Multi-cloud Gerrit deployment | Designing distributed Gerrit setups |
| **git-workflow-expert** | Git branching strategy design | Implementing git-flow permissions |
---
## § 13 · Change Log
| Version | Date | Changes | Author |
|---------|------|---------|--------|
| 1.0.0 | 2026-01-15 | Initial release | neo.ai |
| 2.0.0 | 2026-02-01 | Added templates and Git Flow support | neo.ai |
| 3.0.0 | 2026-03-16 | Full reference files added; comprehensive guide | neo.ai |
| 3.1.0 | 2026-03-21 | 16-section standard format compliance; enhanced risk matrix; detailed workflow phases; expanded scenario examples | neo.ai |
---
## § 14 · Contributing
**Original Author:** Neo.ai ([@neoai](https://github.com/neoai))
**Source Repository:** https://github.com/neoai/awesome-skills
**License:** MIT License — Copyright (c) 2026 Neo.ai
**Contribution Guidelines:**
- Submit issues and PRs to the source repository
- Follow the existing documentation style
- Include test cases for new templates
- Update change log with each contribution
Reference documentation by the awesome-skills community.
---
## § 15 · Final Notes
### Best Practices Summary
Gerrit permission management works best when:
- **Group structure is defined before assigning permissions** — Groups are the foundation
- **Templates are used for consistency across repositories** — Don't reinvent per repo
- **Inheritance from parent projects is leveraged** — Reduces duplication
- **Least privilege is enforced** — Minimize attack surface
- **Security audits run regularly** — Catch drift early
- **Drift detection compares against baseline templates** — Maintain compliance
### Quick Reference Card
```
┌─────────────────────────────────────────────────────────────┐
│ GERRIT PERMISSION MANAGER QUICK REF │
├─────────────────────────────────────────────────────────────┤
│ 1. Always start with groups, not individuals │
│ 2. Use templates: standard | restricted | protected │
│ 3. Test in non-prod before production │
│ 4. Backup before changes: export refs/meta/config │
│ 5. Run audit after changes: ./scripts/audit-permissions.sh │
│ 6. Enable drift detection for ongoing compliance │
└─────────────────────────────────────────────────────────────┘
```
Full reference documentation available in the `references/` directory.
---
## § 16 · Install Guide
### For OpenCode (recommended)
```
/skill install gerrit-permission-manager
```
### Manual Install
1. Copy the YAML frontmatter and §1 System Prompt section
2. Paste into your agent's skill configuration
3. Reference files in `references/` are optional—SKILL.md works standalone
### Platform-Specific Instructions
| Platform | Location | Notes |
|----------|----------|-------|
| OpenCode | `~/.opencode/skills/gerrit-permission-manager.md` | Auto-loads on startup |
| Claude Code | `~/.claude/CLAUDE.md` | Append to existing file |
| Cursor | `~/.cursor/rules/gerrit-permission-manager.mdc` | MDC format required |
| Kimi | `.kimi-rules` | Project-local or global |
### Verification
After installing, try:
```
"Help me set up branch protection for our main branch"
```
Expected response includes:
- Template selection guidance
- Group verification steps
- Branch pattern recommendations
- Security score prediction
---
**License:** MIT License — Copyright (c) 2026 Neo.ai
## References
Detailed content:
- [## § 2 · What This Skill Does](./references/2-what-this-skill-does.md)
- [## § 3 · Risk Documentation](./references/3-risk-documentation.md)
- [## § 4 · Core Philosophy](./references/4-core-philosophy.md)
- [## § 6 · Professional Toolkit](./references/6-professional-toolkit.md)
- [## § 7 · Standards & Reference](./references/7-standards-reference.md)
- [## § 8 · Workflow](./references/8-workflow.md)
- [## § 9 · Scenario Examples](./references/9-scenario-examples.md)
- [## § 20 · Case Studies](./references/20-case-studies.md)
## Workflow
### Phase 1: Request
- Receive and document request
- Clarify requirements and constraints
- Assess urgency and priority
**Done:** Request documented, requirements clarified
**Fail:** Unclear request, missing information
### Phase 2: Assessment
- Evaluate current state and gaps
- Identify resources needed
- Assess risks and alternatives
**Done:** Assessment complete, solution options identified
**Fail:** Incomplete assessment, missed risks
### Phase 3: Coordination
- Coordinate with stakeholders
- Allocate resources
- Execute plan
**Done:** Coordination complete, plan executed
**Fail:** Resource conflicts, stakeholder issues
### Phase 4: Resolution & Confirmation
- Verify resolution meets requirements
- Obtain stakeholder sign-off
- Document lessons learned
**Done:** Issue resolved, stakeholder approved
**Fail:** Recurring issues, no sign-off
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!