Logo di Dev.Code

Dev.Code

Community
kevinslin
dev.code

Implement, fix, refactor, or otherwise modify source code.

Panoramica

Autorekevinslin
Repositoryagstack
Nome della skilldev.code
Stelle
26
Fork
1
File inclusi
2
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da kevinslin su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Dev.Code in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/kevinslin/agstack/tree/main/active/dev.code
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/dev.code .claude/skills/dev.code
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Dev.Code in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Dev.Code non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Dev.Code non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Code Development Skill

This skill provides a structured approach to coding tasks with emphasis on quality, security, and maintainability.

When to Use This Skill

Use this skill for any coding task including:

  • Implementing new features or functionality
  • Fixing bugs or issues
  • Refactoring existing code
  • Optimizing performance
  • Adding or modifying tests
  • Making any changes to source code

Core Development Workflow

1. Understand Before Coding

Before making changes:

  • Read relevant existing code to understand current implementation
  • Identify the scope of changes needed
  • Ground requirements and invariants in the user's latest explicit decisions, current authoritative contracts, and actual enforcement boundaries
  • Consider edge cases and potential side effects
  • Check for existing patterns and conventions in the codebase
  • Choose the smallest complete implementation; do not invent requirements, compatibility layers, configuration knobs, or speculative abstractions

2. Plan the Implementation

For non-trivial tasks:

  • Use TodoWrite to break down the work into clear steps
  • Identify files that need to be modified
  • Consider the order of operations (e.g., tests before implementation, or vice versa)
  • Plan for both happy path and error handling
  • Identify every test or end-to-end outcome the user explicitly requested and the real runtime, credentials, or infrastructure needed to verify it
  • Identify new components that need user-facing documentation and temporary implementation paths that need an explicit removal condition

3. Write Quality Code

Follow these principles:

Code Style & Conventions:

  • Follow existing code style and patterns in the codebase
  • Use spaces not tabs (per user configuration)
  • Choose descriptive variable and function names
  • Keep functions focused and single-purpose
  • Add comments for complex logic, but prefer self-documenting code
  • Reuse existing architecture and one canonical source of truth; remove unnecessary helpers, state machinery, duplicate configuration, and defenses not required by a real current contract

Documentation and Deferred Work:

  • When introducing a component, load $docy guidance and add or update its user-facing guide in the same change. Cover its purpose, setup, configuration, supported boundaries, verification, and troubleshooting.
  • Update relevant README links, navigation, and adjacent documents that would otherwise describe outdated behavior.
  • Keep active specifications and user-facing documentation synchronized with implemented behavior, approved limitations, and remaining verification gaps.
  • Mark temporary placeholders, compatibility drains, feature filters, or deferred behavior with a nearby concise TODO naming the missing capability, responsible milestone or owner, and replacement or removal condition.
  • Explicitly mark temporary authentication, credential, transport, or network exceptions beside their implementation and explain their replacement path.
  • Keep permanent security boundaries and intentional architecture free of misleading temporary markers.

Security Considerations:

  • NEVER introduce security vulnerabilities
  • Watch for: command injection, XSS, SQL injection, path traversal, insecure deserialization
  • Validate and sanitize all user inputs
  • Use parameterized queries for database operations
  • Avoid hardcoding secrets or credentials
  • Use secure defaults and principle of least privilege
  • For detailed security guidance, consult ./references/security-guidelines.md

Error Handling:

  • Handle errors gracefully with appropriate error messages
  • Avoid exposing sensitive information in error messages
  • Clean up resources properly (close files, connections, etc.)
  • Consider failure modes and recovery strategies

Performance:

  • Avoid unnecessary computations or database queries
  • Consider time and space complexity for data structures and algorithms
  • Use caching appropriately
  • Profile before optimizing (don't prematurely optimize)

4. Testing

Prefer integration tests over unit tests. Integration tests:

  • Test the full application as users would interact with it
  • Catch more bugs (import issues, config problems, integration bugs)
  • Are easier to maintain during refactoring
  • Provide confidence that the actual user experience works

When changing program behavior:

  • Add tests (per user configuration)
  • Write integration tests first - test the full application/CLI
  • Run the actual application process, don't import functions directly
  • Write tests that cover both happy path and edge cases
  • Ensure existing tests still pass
  • Add unit tests sparingly - only for complex logic that needs isolation
  • Test error handling and boundary conditions
  • Use the repository's existing test runner and conventions; do not introduce Jest, snapshots, dependencies, or snapshot updates unless the repository and requested behavior actually require them
  • Exercise supported routes, realistic ownership and persisted state, real authorization, and observable outcomes at their authoritative boundary
  • Reject tests that assert behavior invented by their own mocks, monkeypatches, fixtures, adapters, nonexistent endpoints, or impossible application states
  • Add concise comments before non-obvious integration setup and assertions to explain the scenario and the business or security invariant being verified
  • Distinguish real runtime or infrastructure execution from rendering-only checks, substitutes, and skipped cases; report unavailable prerequisites honestly instead of presenting a substitute as equivalent proof
  • Run every test the user explicitly requested. If any requested test fails, skips, or cannot run, report that exact acceptance criterion as unverified and do not claim the requested outcome is complete

Test-driven development approach:

  1. Write failing integration test first (recommended)
  2. Implement the minimal code to make tests pass
  3. Refactor while keeping tests green
  4. Add unit tests only if needed for complex logic

For detailed testing guidance, consult ./references/testing-guidelines.md

5. Review Your Work

Before marking a task complete:

  • Re-read the changes you made
  • Check for introduced bugs or regressions
  • Verify security considerations are addressed
  • Ensure tests pass
  • Confirm each user-requested test actually ran and passed at the requested boundary; name any remaining infrastructure or acceptance-proof blocker
  • Verify new component documentation, its links and examples, and explanations for every intentionally temporary implementation path
  • Look for opportunities to simplify
  • Remove debug code, console.logs, or temporary changes

6. Iterate and Improve

If errors or issues arise:

  • Don't mark tasks as complete if there are failures
  • Debug systematically (check error messages, add logging, isolate the issue)
  • Fix the root cause, not just symptoms
  • Verify the fix works with tests

Common Patterns

When Editing Files

  • Always use Read before Edit or Write
  • Preserve exact indentation when using Edit tool
  • Use Edit for targeted changes, Write for new files or complete rewrites

When Searching Code

  • Use Grep for content search
  • Use Glob for finding files by pattern
  • Use Task tool with Explore agent for open-ended exploration

When Working with Git

  • Check git status before committing
  • Write clear, concise commit messages
  • Don't commit secrets, credentials, or sensitive data
  • Follow the repository's commit message conventions

Anti-Patterns to Avoid

  • Don't write code without reading existing implementation
  • Don't mark tasks complete when tests are failing
  • Don't skip error handling or edge cases
  • Don't introduce security vulnerabilities
  • Don't hardcode values that should be configurable
  • Don't duplicate code instead of extracting common functionality
  • Don't leave commented-out code or debug statements
  • Don't make changes without understanding the full impact

Language-Specific Considerations

When working in different languages, adapt to their idioms and best practices:

JavaScript/TypeScript:

  • Use const/let, never var
  • Prefer async/await over raw promises
  • Handle promise rejections
  • Use TypeScript types effectively
  • Use the repository's existing test framework and scripts
  • Write integration tests that run the actual CLI/application process

Python:

  • Follow PEP 8 style guidelines
  • Use type hints for better code clarity
  • Properly handle exceptions with try/except
  • Use context managers (with statements) for resources

Go:

  • Handle errors explicitly (don't ignore them)
  • Use defer for cleanup
  • Follow Go conventions (e.g., early returns)

Rust:

  • Handle Result and Option types properly
  • Use borrowing and ownership correctly
  • Leverage the type system for safety

Java:

  • Use appropriate exception handling
  • Follow naming conventions (camelCase for methods/variables, PascalCase for classes)
  • Properly close resources (use try-with-resources)

Best Practices Summary

  1. Read first, code second - Understand before changing
  2. Security by default - Never introduce vulnerabilities
  3. Test your changes - Write integration tests first, unit tests sparingly
  4. Follow conventions - Match the existing codebase style
  5. Handle errors properly - Don't let exceptions crash the system
  6. Review before submitting - Catch issues early
  7. Iterate on feedback - Fix problems until tests pass

For more detailed information on specific topics:

  • Security best practices: ./references/security-guidelines.md
  • Testing strategies: ./references/testing-guidelines.md

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Dev.Code?

Implement, fix, refactor, or otherwise modify source code.

Perché usare Dev.Code su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Dev.Code è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Dev.Code in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/kevinslin/agstack/tree/main/active/dev.code. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Dev.Code?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Dev.Code?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Dev.Code: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Dev.Code è gratuita?

È pubblicata su GitHub da kevinslin. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇