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 次瀏覽
檔案結構