Toolverse
All skills

javascript-refactoring

by githubnext

Instructions for refactoring JavaScript code into separate files

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
DevOps
Views
2

About this skill

Instructions for refactoring JavaScript code into separate files

How to use

  1. Utwórz nowy plik z rozszerzeniem .cjs w katalogu /pkg/workflow/js/ swojego projektu gh-aw. Plik będzie zawierać kod JavaScript, który chcesz wydzielić z głównego skryptu. 2. Zdefiniuj główną funkcję asynchroniczną o nazwie main() zawierającą logikę, którą chcesz refaktoryzować. Pamiętaj, aby eksportować funkcję za pomocą module.exports = { main }, ale nie wywoływać jej bezpośrednio w pliku — bundler automatycznie wstrzyknie await main() podczas wykonania w GitHub Actions. 3. Jeśli Twój moduł wymaga dostępu do obiektów GitHub Actions (takich jak core czy github), upewnij się, że są one dostępne w kontekście, w którym plik będzie wykonywany. 4. Przetestuj moduł, importując go w testach i wywoływując main() z mockowanymi zależnościami, aby sprawdzić, czy logika działa prawidłowo. 5. Zintegruj nowy plik .cjs z przepływem pracy GitHub Actions, odwołując się do niego w konfiguracji workflow. Bundler automatycznie zinlinuje wymagane zależności lokalne podczas budowania.

Related skills

draw-io

by davila7

draw.io diagram creation, editing, and review. Use for .drawio XML editing, PNG conversion, layout adjustment, and AWS icon usage.

DevOps
1693

unity-developer

by sickn33

Build Unity games with optimized C# scripts, efficient rendering, and proper asset management. Masters Unity 6 LTS, URP/HDRP pipelines, and cross-platform deployment. Handles gameplay systems, UI implementation, and platform optimization. Use PROACTIVELY for Unity performance

DevOps
66164

planning-with-files

by davila7

Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring u003e5 tool calls.

DevOps
2365

aws-solution-architect

by alirezarezvani

Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora,

DevOps
1231

senior-data-engineer

by davila7

World-class data engineering skill for building scalable data pipelines, ETL/ELT systems, and data infrastructure. Expertise in Python, SQL, Spark, Airflow, dbt, Kafka, and modern data stack. Includes data modeling, pipeline orchestration, data quality, and DataOps. Use when

DevOps
1268

context7

by mikha08-rgb

Search GitHub issues, pull requests, and discussions across any repository. Activates when researching external dependencies (whisper.cpp, NAudio), looking for similar bugs, or finding implementation examples.

DevOps
51166