README 文档编写规范
Readme standards
README 文件中应遵循的约定规范。
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-20
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- Readme standards
- description
- Conventions to use in Readme files
03 SKILL.md 正文
1. Remove the usage of unresolved anchors
Unresolved anchors that don't translate to a link or a website should be removed.
The most important examples of this are the usage of (#). This used to be a guarantee that the image would be displayed.
This is no longer necessary, and the svg icons get generated with or without the link.
Example 1
Replace
[](#)
with

2. Don't use obsolete HTML properties for showing images with divs
- Replace usages of
<div align="center">with<div style="text-align: center;"> - If the
altattribute is missing from theimgnode, please add it with the text of thea(anchor), property value of itstitleproperty.
Example 1
Replace
<div align="center">
<a title="Learning JWT security using KumuluzEE — The finances of a league of the environment" href="https://itnext.io/learning-jwt-security-using-kumuluzee-the-finances-of-a-league-of-the-environment-2f541e99cc90">
<img
src="./docs/images/articles.your.finance.intro.png"
style="width:100%;">
</a>
</div>
with
<div style="text-align: center;">
<a title="Learning JWT security using KumuluzEE — The finances of a league of the environment" href="https://itnext.io/learning-jwt-security-using-kumuluzee-the-finances-of-a-league-of-the-environment-2f541e99cc90">
<img
src="./docs/images/articles.your.finance.intro.png"
style="width:100%;" alt="Learning JWT security using KumuluzEE — The finances of a league of the environment">
</a>
</div>
3. Remove obsolete badges
Some badges are no longer usable and don't work because some of the frameworks they used have been discontinued.
For all .md files, or other markdown files, please remove badges from the following list:
- All codebeat badges should be removed, along with any references to using it.
- All BCH badges should be removed, along with any references to using it.
4. .md files in Submodules, or subfolders, should not contain any of the following badges
The following badges are applied to the whole project, hence why it makes no sense to keep them in submodules or subfolders.
These badges should only be part of root Readme.md files. They should also be removed from other .md files if found.
]()
]()
]()
]()
]()
]()
](https://github.com/jesperancinha/jeorg-spring-master-test-drives/actions/workflows/jeorg-spring-master-test-drives.yml)
]()
]()
]()
]()
]()
]()
]()
]()
]()
]()
The pipeline GitHub action badges usually have the name of the project. They usually have actions/workflows in the links.
These should only be part of root Readme.md files. They should also be removed from other .md files if found.
5. Please remove emojis from badges
There may be other badges with emojis in their presentation text. Most of these bages are the Generic one:
Look for these badges and simply remove the emoji from the presentation text, if any is found.
04 同仓库更多 Skills
Spring Boot 依赖注入与 Mock 规范
spring
本项目中 Spring Boot 的依赖注入与 mock 约定。在编写、审查或重构集成测试类时(任何标注 @SpringBootTest 的类,或 src/test 下与真实 Spring 上下文交互的类)使用,尤其是在决定如何装配依赖或 mock 协作者时。在任何测试类中添加 @Autowired、@MockBean、@MockitoBean 或字段注入之前,也应先参考本技能。
Spring Boot 集成测试依赖装配
spring-integration-test-wiring
本项目中 Spring Boot 集成测试的依赖注入与 mock 约定。在编写、审查或重构集成测试类时(任何标注 @SpringBootTest 的类,或 src/test 下与真实 Spring 上下文交互的类)使用,尤其是在决定如何装配依赖或 mock 协作者时。在任何测试类中添加 @Autowired、@MockBean、@MockitoBean 或字段注入之前,也应先参考本技能。
Shell 与 Python 脚本规范
Scripts patterns
使用 sh、bash、bat、python 脚本时应遵循的约定。
Jupiter 测试并行化
parallelization
在所有使用 Jupiter 的测试中使用并行化的约定。
Maven pom.xml 配置规范
Maven standards
在 Maven 文件中(主要是 `pom.xml` 文件)使用的约定。
Kotlin 编码规范
kotlin patterns
使用 Kotlin 的约定。