Λογότυπο Language Idioms Refiner

Language Idioms Refiner

Κοινότητα
techygarg
language-idioms-refiner

Facilitate a structured conversation to define language-specific idioms and patterns for a repository. Produces a language-idioms.md document consumed by multiple atoms to adapt pseudocode defaults to the project's language. Use when setting up a new project, switching languages, or when the user says 'setup language', 'define language idioms', 'configure language', 'language patterns', or 'adapt for Go/Rust/Python'.

Επισκόπηση

Εκδότηςtechygarg
Αποθετήριοlattice
Όνομα δεξιότηταςlanguage-idioms-refiner
Αστέρια
208
Διακλαδώσεις
16
Συνοδευτικά αρχεία
1
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 1

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό techygarg. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Language Idioms Refiner στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/techygarg/lattice/tree/main/skills/language-idioms-refiner
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/techygarg/lattice.git /tmp/lattice
mkdir -p .claude/skills
cp -r /tmp/lattice/skills/language-idioms-refiner .claude/skills/language-idioms-refiner
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Language Idioms Refiner σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Language Idioms Refiner μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Language Idioms Refiner δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Language Idioms Refiner

What This Produces

  • Output: .lattice/standards/language-idioms.md (or custom path from .lattice/config.yaml -> paths.language_idioms)
  • Mode: Always standalone -- no embedded language defaults exist in atoms to overlay on. For revisions, load existing document and update sections in place.
  • Config keys:
    • language (top-level) -- language identifier (e.g., go, rust, python, java, typescript)
    • paths.language_idioms -- path to the produced document
  • Template: Read ./assets/template.md for the full document structure, pre-populated examples, and interview guidance comments
  • Consumed by: Multiple atoms reference specific sections by heading name:
SectionConsumed by
Error Handlingclean-code atom (§8), secure-coding atom (§2 validation error messages)
Type System & Object Modelclean-code atom (§1 SRP/cohesion), domain-driven-design atom (entities, VOs, aggregates)
Naming Conventionsclean-code atom (§4)
Testing Patternstest-quality atom (§5 naming, §4 isolation, §6 builders)
Parameter & Function Designclean-code atom (§2 function size, §5 parameters)
Dependency Managementclean-code atom (§9 testability/DI), architecture atom (dependency direction)

These six section headings are the stable contract. Atoms reference them by name. Additional sections can be added by consumers but these six must be present.

Scope Clarification

This document captures how the project's language expresses engineering patterns -- the language-level idioms that atoms need to adapt their pseudocode defaults. Clear boundaries:

ConcernWhere It BelongsNot Here
Project identity, tech stack, directory layoutknowledge-priming atomNo project structure or framework docs
Code craftsmanship rules (thresholds, heuristics)clean-code atom / overlayNo function size limits or DRY rules
Architecture layers, dependency directionarchitecture atom / overlayNo layer definitions
Domain modeling guardrailsdomain-driven-design atom / overlayNo aggregate rules
Team-specific preferences within languageAtom-specific overlaysNo team decisions (see below)

Key distinction from atom overlays: This document describes how the language works. Atom overlays describe how the team works within the language.

  • Language idioms doc: "Go uses explicit error returns (if err != nil), not exceptions"
  • Clean-code overlay: "We use fmt.Errorf('context: %w', err) for wrapping, custom error types for domain errors"

Language idioms are facts about the language. Atom overlays are team choices.

Before You Begin

Check for existing documents

  1. Read .lattice/config.yaml -- does paths.language_idioms point to a file?
  2. If yes, read that file. Ask the user:
    • "You already have a language idioms document for [language]. Would you like to revise it (update specific sections), start fresh (new interview), or switch language?"
    • Revise: Load the existing document, walk through only the sections the user wants to change.
    • Start fresh: Proceed with the full interview flow below.
    • Switch language: Proceed with full interview for the new language; existing document will be replaced.
  3. If no config or no existing document, proceed with the full interview flow.

Detect the language

Determine the project language before starting the interview:

  1. From config: Check .lattice/config.yaml for language key.
  2. From project files (if no config key):
    • package.json → TypeScript / JavaScript
    • tsconfig.json → TypeScript (confirm over JavaScript)
    • go.mod → Go
    • pom.xml or build.gradle or build.gradle.kts → Java or Kotlin
    • Cargo.toml → Rust
    • requirements.txt or pyproject.toml or setup.py → Python
    • Gemfile → Ruby
    • *.csproj or *.sln → C# / .NET
    • Package.swift → Swift
  3. Multiple languages detected: Ask the user which is the primary language. One language-idioms document per project (covers the primary language).
  4. No detection: Ask the user directly.

Present the detected language: "I detected this is a Go project (found go.mod). I'll propose Go-idiomatic patterns for each section. You can confirm or adjust."

Interview Flow

This refiner works differently from other refiners. Instead of showing defaults and asking "change or keep?", it proposes language-specific content and asks "does this match your team's usage?"

Step 1: Confirm language and version

"I detected [Language] [version]. Is this correct?"

Record language and version. These go in the document frontmatter.

Step 2: Walk through sections with proposals

For each of the 6 sections:

  1. Propose pre-populated content based on the detected language (see Language-Specific Proposals below).
  2. Present the proposal: "Here's what I'd recommend for [Language]. Does this match how your team uses [Language]?"
  3. User confirms → record as-is.
  4. User adjusts → discuss specifics, record their version.

Step 3: Additional sections

After the 6 core sections, ask: "Any language-specific patterns I should add? For example: concurrency patterns, memory management, async/await idioms, or framework-specific conventions."

Record any additional sections the user wants.

Step 4: Produce document

Assemble and write the document.

Section-by-Section Interview Guide

Read ./assets/template.md and follow the <!-- INTERVIEW GUIDANCE: --> comments for each section.

The 6 core sections

#SectionWhat It Captures
1Error HandlingLanguage error philosophy (exceptions, error returns, Result types), error propagation patterns, error creation idioms
2Type System & Object ModelClasses vs structs, interfaces (nominal vs structural), inheritance vs composition, generics, type safety idioms
3Naming ConventionsCase conventions, visibility modifiers, acronym style, package/module naming, idiomatic patterns
4Testing PatternsTest framework idioms, test organization, assertion patterns, mocking approach, test naming style
5Parameter & Function DesignArgument passing idioms, options/config patterns, multiple returns, named parameters, function signatures
6Dependency ManagementDI approach (container vs manual), interface placement, wiring patterns, import/module conventions

Cross-section awareness

Decision inAffectsHow
§1 Error Handling§4 TestingError patterns determine how error paths are tested
§2 Type System§5 Parameters, §6 DependenciesObject model shapes function signatures and DI approach
§3 Naming§4 TestingNaming conventions apply to test names too

Language-Specific Proposals

For well-known languages, pre-populate each section with idiomatic defaults. The interview confirms or adjusts these. For unrecognized languages, ask open-ended questions.

Go

SectionProposal summary
Error HandlingExplicit error returns (value, err := ...), if err != nil, error wrapping with fmt.Errorf("context: %w", err), sentinel errors for expected cases, no exceptions
Type SystemStructs with methods (receiver functions), implicit interfaces (structural typing), composition via embedding, no inheritance, no classes
NamingExported = capitalized, unexported = lowercase, short names in small scopes, acronyms fully uppercase (HTTP, ID), package name is part of identifier (http.Client not http.HTTPClient)
TestingTable-driven tests, t.Run for subtests, testing.T parameter, test files _test.go co-located, no assertion library required (stdlib comparisons)
ParametersAccept interfaces return structs, functional options pattern for config (WithTimeout(5*time.Second)), multiple return values, no method overloading
DependenciesPass interface parameters (not constructor DI), define interfaces at consumer not provider, no DI container, explicit wiring in main() or cmd/

Rust

SectionProposal summary
Error HandlingResult<T, E> for recoverable, panic! for unrecoverable, ? operator for propagation, thiserror for library errors, anyhow for application errors
Type SystemStructs + impl blocks, traits (explicit implementation), enums with data (algebraic types), ownership/borrowing, no inheritance, no null (Option<T> instead)
Namingsnake_case functions/variables, PascalCase types/traits, SCREAMING_SNAKE constants, lifetime names short ('a, 'b)
Testing#[test] attribute, #[cfg(test)] mod tests in same file, integration tests in tests/ directory, assert_eq!/assert! macros
ParametersOwnership: borrow (&T) vs move, generic bounds (impl Trait), builder pattern for complex config, no default parameters
DependenciesTrait objects (dyn Trait) or generics (impl Trait) for abstraction, no DI container, explicit construction

Python

SectionProposal summary
Error HandlingEAFP over LBYL (try/except, not if-checks), context managers (with) for cleanup, custom exceptions inheriting from base classes, raise/except
Type SystemClasses, dataclasses (@dataclass), protocols for structural typing (PEP 544), duck typing, type hints encouraged but optional at runtime
Namingsnake_case functions/variables, PascalCase classes, SCREAMING_SNAKE constants, _private convention (single underscore), __dunder__ for magic methods
Testingpytest preferred, fixtures for setup/teardown, @pytest.mark.parametrize for data-driven tests, plain assert (pytest rewrites), test files test_*.py
Parameters**kwargs for options, named/keyword arguments, default values, dataclass or TypedDict for config objects
DependenciesConstructor injection with protocols/ABCs, or function parameters, no heavyweight DI container (or dependency-injector if needed)

Java / Kotlin

SectionProposal summary
Error HandlingJava: unchecked exceptions preferred over checked (modern style), custom exceptions extend RuntimeException. Kotlin: sealed class Result pattern, runCatching, no checked exceptions
Type SystemJava: classes, interfaces, records (16+), sealed classes (17+). Kotlin: data classes, sealed hierarchies, null safety (?), extension functions
NamingcamelCase variables/methods, PascalCase classes/interfaces, SCREAMING_SNAKE constants, packages lowercase.dotted
TestingJUnit 5, @Test, @ParameterizedTest, @Nested for grouping, Mockito (Java) / MockK (Kotlin), AssertJ for fluent assertions
ParametersJava: builder pattern for >3 params, method overloading. Kotlin: named arguments, default values, data class config
DependenciesConstructor injection (Spring, Guice, or manual), DI containers are idiomatic, program to interfaces

TypeScript

SectionProposal summary
Error Handlingtry/catch with custom Error subclasses, typed error handling optional (Result pattern via libraries), no checked exceptions
Type SystemInterfaces, type aliases, union/intersection types, generics, unknown over any, discriminated unions for state
NamingcamelCase variables/functions, PascalCase types/classes/enums, SCREAMING_SNAKE constants, no I prefix for interfaces
TestingJest or Vitest, describe/it blocks, mock functions (jest.fn()), expect().toBe() assertions, .test.ts or .spec.ts co-located
ParametersOptions objects with destructuring, default values, rest parameters, overloaded signatures for type narrowing
DependenciesConstructor injection, DI optional (tsyringe, inversify), or module-level factory functions

C# / .NET

SectionProposal summary
Error HandlingExceptions for exceptional cases, custom exceptions from Exception base, try/catch/finally, no error codes for business logic, Result pattern growing in popularity
Type SystemClasses, interfaces (explicit), records (C# 9+), structs (value types), nullable reference types (C# 8+), generics
NamingPascalCase methods/properties/classes, camelCase local variables/parameters, _camelCase private fields, I prefix for interfaces (IService)
TestingxUnit or NUnit, [Fact]/[Theory] (xUnit), [Test]/[TestCase] (NUnit), FluentAssertions, Moq for mocking
ParametersNamed parameters, optional parameters with defaults, builder pattern or options pattern (IOptions<T>) for config
DependenciesConstructor injection via built-in DI (IServiceCollection), DI containers idiomatic, interface-first

Other Languages

For languages not listed above, use open-ended questions for each section:

  1. "How does [Language] handle errors? Exceptions, error returns, algebraic types, or something else?"
  2. "What's the object model? Classes, structs, traits, protocols? Inheritance or composition?"
  3. "What are the naming conventions? Case style, visibility markers, module naming?"
  4. "What's the testing ecosystem? Framework, organization, assertion style?"
  5. "How do you pass configuration and options to functions? Named params, objects, builders?"
  6. "How is dependency injection handled? Containers, manual wiring, interface parameters?"

Output Assembly

  1. YAML frontmatter: language and version
  2. Title line: # Language Idioms: {Language}
  3. All 6 core sections with confirmed/adjusted content
  4. Any additional sections the user added
  5. Strip all <!-- INTERVIEW GUIDANCE: --> comments

Target size: 40-60 lines of focused content. Each section should be 4-8 lines: a brief philosophy statement plus the key idiomatic patterns as a concise list. No code examples -- atoms have their own examples in pseudocode that they adapt using this document's guidance.

Determine output path:

  1. If .lattice/config.yaml exists and has paths.language_idioms, use that path.
  2. Otherwise, default to .lattice/standards/language-idioms.md.

Update config:

  1. Set language: {language} at top level (create or update).
  2. Set paths.language_idioms pointing to the output file.
  3. If .lattice/config.yaml does not exist, create it. Preserve all existing content.

Confirm to user: "Your language idioms document has been written to [PATH] for [Language] [version]. The following atoms will now adapt their patterns: clean-code, test-quality, secure-coding, domain-driven-design, and architecture."

Document Quality Checks

Before writing the final document, verify:

  • All 6 core section headings are present and match exactly: Error Handling, Type System & Object Model, Naming Conventions, Testing Patterns, Parameter & Function Design, Dependency Management
  • Content is specific to the language, not generic advice ("use error returns" not "handle errors properly")
  • No code craftsmanship rules (thresholds, complexity limits) -- those belong in atom overlays
  • No project identity information (tech stack, directory layout) -- that belongs in knowledge-priming
  • Content is concise -- each section 4-8 lines, total document under 60 lines
  • Frontmatter has correct language and version values
  • Config file is correctly updated with both language key and paths.language_idioms
  • No <!-- INTERVIEW GUIDANCE: --> comments remain in output

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Language Idioms Refiner;

Facilitate a structured conversation to define language-specific idioms and patterns for a repository. Produces a language-idioms.md document consumed by multiple atoms to adapt pseudocode defaults to the project's language. Use when setting up a new project, switching languages, or when the user says 'setup language', 'define language idioms', 'configure language', 'language patterns', or 'adapt for Go/Rust/Python'.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Language Idioms Refiner στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Language Idioms Refiner είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Language Idioms Refiner στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/techygarg/lattice/tree/main/skills/language-idioms-refiner. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Language Idioms Refiner;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Language Idioms Refiner;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Language Idioms Refiner με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Language Idioms Refiner;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό techygarg με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇