backend-module-structure
Skill5.1k starsChanged 3 months agoApache-2.0View on GitHub
Rules for the SkillHub backend Maven multi-module clean architecture. Ensures agents place new code in the correct module and respect dependency direction.
Trending
Less talk lately.about the whole repository
Who's talking about iflytek/skillhub
- ruanyf/weekly“【开源自荐】SkillHub —— 企业内部的技能注册中心”GitHub · Mar 19, 2026 · 2 reactions
- iflytek/astron-rpa“chore: add GitHub-reward form, scripts & actions”GitHub · Apr 7, 2026 · 1 reactions
- iflytek/astron-agent“chore: add GitHub-reward form, scripts & actions”GitHub · Apr 7, 2026 · 1 reactions
- @nigolv.bsky.social“AIアシスタントのスキル管理、難しいですよね。 Kubernetesとアラート履歴を使って、 スムーズに運用できるツールが登場しました。 詳しくはGitHubでチェックしてみてください。 github.com …”Bluesky · Mar 28, 2026 · 1 likes
- Open-reSource/openresource.dev“ci: update showcase”GitHub · Oct 5, 2026
The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 49
Talked about on GitHub and Bluesky (49 times).
On GitHub · 48
- Mar 19, 2026【开源自荐】SkillHub —— 企业内部的技能注册中心 — ruanyf/weekly2 reactions · 2 comments
- Apr 7, 2026chore: add GitHub-reward form, scripts & actions — iflytek/astron-rpa1 reaction · 1 comment
- Apr 7, 2026chore: add GitHub-reward form, scripts & actions — iflytek/astron-agent1 reaction · 1 comment
- Oct 5, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Oct 2, 2026Add zjncs to developers list — rv2036/inchi-rvlab-access0 reactions
43 more on GitHub
- Oct 2, 2026Add zjncs to developers list — plctlab/riscv-lab-access0 reactions
- Sep 28, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Sep 28, 2026agent-skills.github.iflytek.skillhub: init at 0.2.21 — sudosubin/agents.nix0 reactions
- Sep 28, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Sep 21, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Sep 14, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Sep 7, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Aug 31, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Aug 29, 2026[FEATURE] 资源管理支持从标准 Agent Skills / Agent Plugins 仓库批量导入 — iflytek/astron-agent0 reactions · 3 comments
- Aug 29, 2026docs: add SkillHub/Astron governed publishing guide — K-Dense-AI/scientific-agent-skills0 reactions · 2 comments
- Aug 24, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Aug 24, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Aug 24, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Aug 3, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jul 27, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jul 27, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jul 27, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jul 20, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jul 13, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jul 6, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jun 29, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jun 22, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jun 15, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jun 8, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Jun 1, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- May 11, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- May 8, 2026【Feature】可以支持skillhub吗? — AFunc-OPC/Skiller0 reactions · 1 comment
- May 4, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Apr 30, 2026Updated single-repositories/github/iflytek/skillhub.yml — oss-compass/compass-projects-information0 reactions · 3 comments
- Apr 30, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Apr 27, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Apr 22, 2026[SUBMISSION] skillhub — ProSkillsMD/proskills0 reactions
- Apr 20, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Apr 17, 2026[SUBMISSION] skillhub — ProSkillsMD/proskills0 reactions
- Apr 17, 2026新增支持LDAP登录https://github.com/iflytek/skillhub/issues/260 — h4ai/qa-qe-skillhub0 reactions
- Apr 13, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Apr 12, 2026[SUBMISSION] skillhub — ProSkillsMD/proskills0 reactions
- Apr 7, 2026[SUBMISSION] skillhub — ProSkillsMD/proskills0 reactions
- Apr 6, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Mar 30, 2026ci: update showcase — Open-reSource/openresource.dev0 reactions · 1 comment
- Mar 30, 2026[SUBMISSION] skillhub — ProSkillsMD/proskills0 reactions · 2 comments
- Mar 23, 2026[SUBMISSION] skillhub — ProSkillsMD/proskills0 reactions · 4 comments
- Mar 19, 2026[SUBMISSION] skillhub — ProSkillsMD/proskills0 reactions · 2 comments
On Bluesky · 1
- Mar 28, 2026AIアシスタントのスキル管理、難しいですよね。 Kubernetesとアラート履歴を使って、 スムーズに運用できるツールが登場しました。 詳しくはGitHubでチェックしてみてください。 github.com opensourceprojects.dev #news — @nigolv.bsky.social1 likes and repost
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-and-namespace-designSkill
- code-conventionsSkill
- dev-workflowSkill
- frontend-conventionsSkill
- pr-submissionSkill
- skill-lifecycleSkill
- testing-and-ciSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill when:
- Distinctive: line 83
When a new read use case arrives:
- Distinctive: line 84
If it's for state transition or domain rule → domain repository port
- Very specific: line 85
If it's for page/list/detail response assembly with joins → app query repository
- Distinctive: line 86
If it's a thin single-aggregate read → direct domain repository call from app service
- Distinctive: line 87
If direct SQL/EntityManager is needed → add class-level comment explaining why
- Very specific: line 91
Never run ./mvnw -pl skillhub-app clean test directly under server/.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Backend Module Structure Skill
Trigger
Use this skill when:
- Adding or modifying Java backend code
- Creating new services, controllers, repositories, or entities
- Refactoring backend code across files
- Reviewing backend code placement
Rules
Dependency Direction
The design-doc dependency direction:
app → domain, auth, search, storage, infra, notification
infra → domain # implements domain repository interfaces
auth → domain
search → domain
notification → domain
storage → (independent) # pure SPIDesign intent: skillhub-domain should be the innermost layer, defining entities,
repository interfaces, and domain services without depending on infra, auth, search, or storage.
Code reality: skillhub-domain declares a Maven dependency on skillhub-storage (via
pom.xml), and several domain services (SkillHardDeleteService, SkillDownloadService,
SkillPublishService, SkillGovernanceService, SkillQueryService,
SkillStorageDeletionCompensationService) import com.iflytek.skillhub.storage.ObjectStorageService.
This is an existing deviation from the ideal clean architecture. New code should avoid adding
further cross-module dependencies from domain.
Where to Place Code
| Code Type | Module | Java Package |
| Entity / Value Object | skillhub-domain | com.iflytek.skillhub.domain.{submodule}/ |
| Repository Interface | skillhub-domain | com.iflytek.skillhub.domain.{submodule}/ |
| Domain Service | skillhub-domain | com.iflytek.skillhub.domain.{submodule}/service/ |
| Domain Event | skillhub-domain | com.iflytek.skillhub.domain/event/ |
| Domain Exception | skillhub-domain | com.iflytek.skillhub.domain/shared/exception/ |
| JPA Repository Impl | skillhub-infra | com.iflytek.skillhub.infra.repository/ |
| Controller | skillhub-app | com.iflytek.skillhub.controller/ |
| App Service | skillhub-app | com.iflytek.skillhub.service/ |
| Query Repository | skillhub-app | com.iflytek.skillhub.repository/ |
| DTO / Response | skillhub-app | com.iflytek.skillhub.dto/ |
| OAuth2 / Auth Config | skillhub-auth | com.iflytek.skillhub.auth/ |
| Search SPI / Impl | skillhub-search | com.iflytek.skillhub.search/ |
| Storage SPI / Impl | skillhub-storage | com.iflytek.skillhub.storage/ |
| Notification Service | skillhub-notification | com.iflytek.skillhub.notification/ |
Maven Modules
The parent POM (server/pom.xml) defines 7 modules with spring-boot-starter-parent:3.2.3:
skillhub-app | skillhub-domain | skillhub-auth | skillhub-search
skillhub-storage | skillhub-infra | skillhub-notificationRepository vs Query Repository
- Domain Repository (
skillhub-domain): Aggregate reads, state transitions, rule evaluation. Returns domain objects. Defined as interfaces, implemented inskillhub-infravia Spring Data JPA. - Query Repository (
com.iflytek.skillhub.repository): Read-model assembly, joins multiple sources, presentation projection. Returns DTOs. Implemented directly inskillhub-app.
Current query repositories:
GovernanceQueryRepository/JpaGovernanceQueryRepositoryMySkillQueryRepository/JpaMySkillQueryRepositoryProfileReviewQueryRepository/JpaProfileReviewQueryRepositoryAdminSkillReportQueryRepository/JpaAdminSkillReportQueryRepository
When a new read use case arrives:
- If it's for state transition or domain rule → domain repository port
- If it's for page/list/detail response assembly with joins → app query repository
- If it's a thin single-aggregate read → direct domain repository call from app service
- If direct SQL/EntityManager is needed → add class-level comment explaining why
Building Backend Tests
Never run ./mvnw -pl skillhub-app clean test directly under server/. Use:
make test-backend-app # skillhub-app + dependencies (includes -am)
make test-backend # all backend modulesRunning clean test on skillhub-app alone can fall back to stale artifacts from the local Maven
repository, surfacing misleading cannot find symbol and signature-mismatch errors.
User Identity Type
User identity is always String throughout the codebase. This covers:
- Authentication, API params, permissions, audit
- Resource owner, creator, reviewer, actor, submittedBy
- All user-associated fields
The UserAccount entity uses @Column(length = 128) for its ID. The platform needs to support
external SSO/OIDC/SCIM identity sources whose UIDs are typically stable strings.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

