golang-modernize
Modernize Go Code with Current Idioms
Older Go patterns can limit safety, clarity, and maintainability. This skill recommends version-compatible language, library, testing, and tooling improvements.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "golang-modernize" from https://skillstore.io/skills/samber-golang-modernize.md and its manifest at https://skillstore.io/api/skills/samber-golang-modernize/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“golang-modernize”。 Review this Go 1.22 package for modernization opportunities.
预期结果:
- High priority: remove obsolete loop variable shadow copies and verify concurrent tests.
- Medium priority: replace manual helpers with compatible slices, maps, min, and max APIs.
- Validation: run focused tests, then the complete package test suite.
正在使用“golang-modernize”。 Prepare this service for a Go 1.27 upgrade.
预期结果:
- Check removed GODEBUG settings and JSON decoding behavior before changing the module directive.
- Review deprecated dependencies and confirm replacement feature parity.
- Run module cleanup, tests, linting, and vulnerability checks after approved edits.
正在使用“golang-modernize”。 Modernize our Go testing and CI setup.
预期结果:
- Use deterministic testing APIs where the target version supports them.
- Add modernization linting and vulnerability scanning to CI.
- Keep broad repository changes isolated until maintainers review the results.
安全审计
安全All 118 static findings are false positives caused by Markdown backticks, JSON evaluation fixtures, ordinary Go examples, and documentation URLs. No executable scripts, dynamic loading, SQLite data, reconnaissance, prompt injection, or malicious network activity appears in the reviewed files.
风险因素
⚡ 包含脚本 (2)
⚙️ 外部命令 (50)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/samber-golang-modernize/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/samber-golang-modernize?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/samber-golang-modernize?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/samber-golang-modernize/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/samber-golang-modernize.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
samber. (2026). golang-modernize security audit report (audit version 1) [Author version 1.5.1]. Skillstore. https://skillstore.io/skills/samber-golang-modernize/audits/1BibTeX 引用
@techreport{samber-samber-golang-modernize-2026,
author = {samber},
title = {golang-modernize security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/samber-golang-modernize/audits/1},
note = {Author version 1.5.1}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "golang-modernize security audit report (audit version 1)"
version: "1.5.1"
type: report
authors:
- name: "samber"
date-released: "2026-09-06"
url: "https://skillstore.io/skills/samber-golang-modernize/audits/1"
identifiers:
- type: other
value: "skillstore:samber-golang-modernize:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Upgrade a Maintained Service
Review an existing service before raising its Go directive and identify required compatibility checks.
Reduce Legacy Patterns
Replace outdated APIs and verbose patterns with compatible standard library features.
Refresh CI Tooling
Add modernization linting, vulnerability checks, tests, and repeatable upgrade validation.
试试这些提示
Review this Go file for modernizations compatible with the current go.mod version. Explain each recommendation before editing.
Modernize this Go package using compatible language and standard library features. Run focused tests and summarize behavior changes.
Assess upgrading this module to Go 1.27. Identify breaking changes, dependency concerns, migration steps, and required validation.
Perform a repository-wide modernization audit. Prioritize correctness, deprecated APIs, testing, tooling, and low-risk changes with validation evidence.
最佳实践
- Confirm the module target version before recommending newer APIs.
- Prioritize correctness and security changes, then readability and gradual cleanup.
- Run focused and complete tests after each approved modernization group.
避免
- Do not recommend APIs newer than the module target without an approved version upgrade.
- Do not mix unrelated structural refactoring into a modernization change.
- Do not remove dependencies before checking behavior, release notes, and transitive usage.
常见问题
Which Go versions receive detailed coverage?
Does the skill edit code automatically?
Can it upgrade go.mod?
Does it replace structural refactoring help?
Which validation tools can it use?
How are declined recommendations handled?
开发者详情
作者
samber许可证
MIT
作者版本
v1.5.1
Skillstore 修订
r1
引用
e5464e662405de6361fdde6b984f9ea865635f64
维护新鲜度
2026/9/8
使用量
1 次下载 · 0 次浏览
文件结构