Логотип Programming

Programming

Сообщество
notque
programming

Language-specific patterns and tooling: Go, Kotlin, PHP, Swift, TypeScript.

Обзор

Издательnotque
Репозиторийvexjoy-agent
Название навыкаprogramming
Звёзды
443
Форки
50
Встроенные файлы
71
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 71

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Опубликовано на GitHub: notque. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Programming в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/notque/vexjoy-agent/tree/main/skills/programming/programming
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/notque/vexjoy-agent.git /tmp/vexjoy-agent
mkdir -p .claude/skills
cp -r /tmp/vexjoy-agent/skills/programming/programming .claude/skills/programming
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Programming в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Programming, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Programming не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Programming

Language-specific patterns and tooling for Go, Kotlin, PHP, Swift, and TypeScript. Identify the language, load matching deep references, follow the language section.

Language Routing

LanguageAgentSection
Gogolang-general-engineerGo
Kotlinkotlin-general-engineerKotlin
PHPphp-general-engineerPHP
Swiftswift-general-engineerSwift
TypeScripttypescript-frontend-engineerTypeScript

If the request spans multiple languages, apply each relevant section.


Go

Style Precedence

  1. Target repository's explicit rules and compatibility constraints.
  2. Google Go Style Guide canonical rules.
  3. Google Go Style Decisions normative guidance.
  4. Google Go Style Best Practices non-canonical recommendations.
  5. Task-specific deep references below.

Prefer local consistency only where the Google guide allows judgment. Do not restyle existing code without cause.

Workflow

  1. Classify the task: testing, concurrency, error handling, code review, SAPCC conventions, or quality gate.
  2. Load the matching deep reference.
  3. Follow the reference's phases, gates, and completion criteria.

For testing: table-driven tests with subtests, test helpers, mock injection. Run go test ./.... Load references/go/testing.md. For concurrency: goroutine lifecycle, sync primitives, context propagation, race detection. Run go test -race. Load references/go/concurrency.md. For error handling: wrapping with %w, sentinel errors, errors.Is/errors.As, custom error types. Load references/go/error-handling.md. For code review: review checklist, common comments, interface compliance. Load references/go/code-review.md. For SAPCC repos: org conventions -- go-bits patterns, auth ordering, JSON strictness, endpoint identification. Load references/go/sapcc-conventions.md. For quality gate: run make check or equivalent. Load references/go/quality-gate.md.

Expert Review Patterns

Beyond linting -- patterns from real code reviews that automated tools miss:

  • Type export design: keep implementation types unexported; export only interfaces and constructors.
  • Batch+callback races: commit() should remove only the specific batch returned, not all items.
  • Function extraction: extract only if reused elsewhere or hides complex details.
  • Defer timing: place defer f.Close() after the error check, not before.
  • Go 1.22+ loop variables: remove i := i reassignment and closure parameter passing -- each iteration has its own variable since 1.22.
  • Prometheus metrics: pre-initialize counters with .Add(0) for all known label combinations.
  • Test dedup: use testWithEachBackingStore() pattern to share test bodies across interface implementations.

Scripts

TaskScript
Generate table testscripts/gen-table-test.sh
Benchmark comparescripts/bench-compare.sh
Check errorsscripts/check-errors.sh
Interface compliancescripts/check-interface-compliance.sh
SAPCC checksscripts/check-sapcc-*.sh
Quality checkerscripts/quality_checker.py, scripts/validate.py
Google style syncscripts/sync-google-style-guide.py

Kotlin

Core Rules

  1. Structured concurrency is non-negotiable. Every coroutine must have a parent scope that defines its lifetime.
  2. Inject dispatchers. Accept CoroutineDispatcher as a parameter so callers and tests control threading.
  3. Always rethrow CancellationException. Catch specific exception types, not broad Exception.
  4. Prefer Flow over Channel. Flow is cold, composable, handles backpressure. Use Channels only for producer-consumer and inter-coroutine communication.
  5. Use supervisorScope for partial failure tolerance. Independent tasks that should not cancel each other.
  6. No GlobalScope. Pass a scope from the application framework.

Stream Type Selection

TypeTemperatureReplayUse Case
FlowColdNoneAsync sequences, API pagination, transform chains
StateFlowHotLatest (1)UI state with current value; conflates duplicates
SharedFlowHotConfigurableOne-shot events: navigation, toasts, errors
ChannelHotNoneProducer-consumer, fan-in/fan-out inter-coroutine communication

Flow: cold -- each collector gets its own execution. Chain with filter, map, flatMapConcat. Terminate with collect. StateFlow: requires initial value, always replays latest to new collectors. Use for UI state. SharedFlow: configurable replay, emits all values (no conflation). Use for event streams. Channel: hot communication primitive. Use produce builder for producer-consumer. Fan-out: multiple coroutines consuming one channel. Fan-in: multiple producers writing to one channel.

Workflow

  1. Classify into concurrency, Flow, Channels, or testing.
  2. Load matching deep reference.
  3. Apply patterns from the reference as templates.

PHP

Core Rules

  • Every PHP file must begin with declare(strict_types=1).
  • Follow PSR-12: 4-space indentation, no trailing whitespace, one class per file, visibility on all members, opening braces same line for control structures, next line for classes and methods.

Framework Idioms

Laravel: Eloquent scopes for reusable query constraints (scopeActive). Collection methods over raw loops (collect()->filter()->map()->sort()). Service Container for interface-to-implementation binding. Contextual binding with when()->needs()->give().

Symfony: DI with #[Autowire] attributes for constructor injection. #[AsEventListener] for event dispatch. Rely on autowiring over XML config.

Workflow

  1. Assess. Classify: code review, type system, framework patterns, tooling setup, or test writing. Load matching deep reference.
  2. Execute. For quality reviews: check strict_types, PSR-12, modern features, framework idioms, tooling. For testing: PHPUnit TestCase with test prefix, @dataProvider for table-driven, createStub() for returns, createMock() for interactions, parent::setUp() first in every setUp.
  3. Verify. Run ./vendor/bin/phpunit. For coverage: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text --coverage-min=80.

Swift

Core Rules

Concurrency:

  • Prefer structured concurrency: TaskGroup over loose Task { }.
  • Mark types Sendable. Enable -strict-concurrency=complete.
  • Use actors for shared mutable state instead of manual locks. All access from outside is async.
  • @MainActor for UI layer only. Use nonisolated for methods that only read let properties.
  • Cancel what you create: every stored Task needs a cancellation path.

Testing:

  • One assertion per concept. Arrange-Act-Assert structure.
  • Name tests descriptively: testFetchUser_withExpiredToken_throwsAuthError.
  • Prefer Swift Testing (@Test, #expect) for Swift 5.9+. Fall back to XCTest for older targets or UI tests.
  • Parameterized tests with arguments:. Protocol-based mock injection.

Workflow

  1. Assess. Classify: concurrency patterns, concurrency mistakes, test writing, or full concurrency review. Load matching deep reference.
  2. Execute. For concurrency: verify structured concurrency, check Sendable conformance, validate actor isolation boundaries, confirm cancellation paths. For testing: Swift Testing for new code on 5.9+, XCTest for UI tests.
  3. Verify. Run swift test --enable-code-coverage and swift build. Confirm strict concurrency checking passes.

TypeScript

Read-only type validation. Do not fix code, change configuration, or install dependencies for a check-only request.

Run

  1. Locate tsconfig.json (check src/, app/, packages/). In a monorepo, use the affected package or the repo's aggregate check. If no config exists, report and stop.
  2. Confirm TypeScript is installed locally. Do not allow implicit npx download.
  3. Run npx tsc --noEmit 2>&1 (or --project path/to/tsconfig.json). Capture exit code. Zero = pass; nonzero = type errors or tool failure (report which).
  4. Report status and error count. Group diagnostics by file and line, retaining file:line:column, TS####, and the message.

Recovery

  • TypeScript missing: suggest npm install typescript --save-dev.
  • npx missing: use npm exec tsc -- --noEmit.
  • Multiple configs: list checked and omitted packages. A single-package pass is not a whole-repository pass.
  • --skipLibCheck: use only when configured or requested.
  • --strict: enable only when configured or requested.
  • --incremental: avoid for read-only checks (writes build-info cache).

For the full JS/TS check sequence: lint first, type-check next, then run tests.


Deep References

Load only the references matching the task. Multiple may apply (e.g., a concurrency PR review loads both code-review and concurrency references).

Go

SignalReference
Tests, table-driven, helpers, mocksreferences/go/testing.md + sub-refs in testing/
Goroutines, channels, sync, race conditionsreferences/go/concurrency.md + concurrency/concurrency-patterns.md
Error wrapping, sentinels, errors.Is/Asreferences/go/error-handling.md + error-handling/patterns.md
Code smells, bad patternsreferences/go/preferred-patterns.md + preferred-patterns/code-examples.md
Code review processreferences/go/code-review.md + code-review/common-review-comments.md
SAPCC repos, go-bitsreferences/go/sapcc-conventions.md + sub-refs in sapcc-conventions/
make check, lintingreferences/go/quality-gate.md + sub-refs in quality-gate/
Google style decisionsreferences/go/google-style-guide/ (pinned upstream)

Kotlin

SignalReference
Scopes, cancellation, dispatchers, exception handlingreferences/kotlin/concurrency-patterns.md
JUnit 5, Kotest, MockK, runTestreferences/kotlin/kotlin-testing.md

PHP

SignalReference
Union/intersection types, enums, readonly, matchreferences/php/modern-php-features.md
PHP-CS-Fixer, PHPStan, Psalm, Rectorreferences/php/quality-tools.md
PHPUnit, data providers, mocks, stubsreferences/php/testing-patterns.md

Swift

SignalReference
TaskGroup, AsyncSequence, AsyncStream, cancellationreferences/swift/task-patterns.md
XCTest, Swift Testing, async tests, UI testsreferences/swift/swift-testing.md

Встроенные файлы

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

и другие файлы: ещё 11.

Часто задаваемые вопросы

Что делает навык ИИ Programming?

Language-specific patterns and tooling: Go, Kotlin, PHP, Swift, TypeScript.

Зачем использовать Programming в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Programming — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Programming в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/notque/vexjoy-agent/tree/main/skills/programming/programming. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Programming?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Programming?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Programming: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Programming?

Да. Навык опубликован на GitHub автором notque по лицензии MIT. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇