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.Ваш Агент по-прежнему должен показать план и запросить все подтверждения, требуемые политикой безопасности.
Ресурсы для AI-агентов
Используйте эти ссылки, когда AI-агенту, crawler или script нужен чистый контекст вместо полной страницы.
Протестировать
Использование «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)
🌐 Доступ к сети (8)
Поделиться и цитировать этот отчет
Делитесь версионным отчетом об оценке, нейтральным значком, встраиваемой карточкой и цитатами. Skillstore публикует доказательства, не решая, безопасен ли этот Skill.
Копировать ссылку на отчёт
https://skillstore.io/skills/samber-golang-modernize/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportЗначок Markdown
[](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/1Цитата BibTeX
@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
Актуальность поддержки
08.09.2026
Использование
1 загрузок · 0 просмотров
Структура файлов