Repository inventory

flpbalada/my-opencode-config

Skills indexed from this repository, with install-style signals scoped to the repo.
28 skills3.8K GitHub stars0 weekly installsGitHubOwner profile

Overview

This skill guides TypeScript best practices to improve type safety, code organization, and long-term maintainability. It gives actionable recommendations for project configuration, typing strategies, async patterns, testing, and performance. Use it to make concrete decisions when starting projects, reviewing code, or fixing runtime type issues.

How this skill works

The skill inspects typical TypeScript decisions and suggests concrete patterns: enabling strict compiler options, preferring inference for locals and explicit types for public APIs, choosing between interface and type aliases, and replacing any with unknown and generics. It also recommends file organization, async/await patterns, testing-friendly dependency injection, and performance-minded type usage. Outputs are practical, ready-to-apply rules and examples.

When to use it

  • Initializing or configuring a new TypeScript project
  • Choosing interface vs type alias for public APIs
  • Writing or reviewing async/await code and concurrency
  • Improving testability and dependency injection in code
  • Optimizing type usage for compile-time performance

Best practices

  • Enable compiler strict mode (noImplicitAny, strictNullChecks, etc.) for maximum safety
  • Trust type inference for local values; annotate public APIs and class members explicitly
  • Prefer interface for extendable object shapes and public contracts; use type for unions, tuples, mapped types
  • Avoid any; use unknown with type guards or generics to preserve type-safety
  • Use guard clauses, single-responsibility functions, and small focused helpers
  • Use type-only imports/exports and const assertions to aid tree-shaking and literal typing

Example use cases

  • Set up tsconfig.json with strict flags before adding third-party libraries
  • Refactor a large function into validation, transformation, persistence, and side-effect steps
  • Replace any-typed API responses with unknown and add runtime type guards
  • Parallelize independent async calls with Promise.all instead of sequential awaits
  • Create barrel files for module groups to simplify imports and surface public types

FAQ

Yes. strict mode catches many errors early and enforces explicit handling of null/undefined and implicit any. It’s the single best compiler configuration for safety.

When should I use interface vs type?

Use interface for extendable object shapes and public contracts; use type for unions, tuples, mapped types, and advanced type compositions.

28 skills

typescript-best-practices
Code Review

This skill helps you configure TypeScript projects and enforce best practices for type safety, maintainability, and code quality.

LintingPerformanceTestingTypescript
self-initiated-triggers
Design

This skill helps design internal triggers for sustained engagement by shifting users from external prompts to self-motivated habits.

GrowthProductResearchStrategy+1
visual-cues-cta-psychology
Design

This skill helps you design landing pages and CTAs using gaze cues and visual hierarchy to boost conversions and user engagement.

GrowthMarketingProductResearch+1
react-useeffect-avoid
Code Review

This skill helps you review React code and avoid useEffect misuse by suggesting better patterns for derived state, event handling, and performance.

DebuggingFrontendJavascriptPerformance+1
hicks-law
Accessibility

This skill helps you optimize decision speed by reducing choices in navigation, onboarding, and forms, applying Hick's Law to improve user flow.

DesignFrontendPlanningProduct+2
user-story-fundamentals
Docs

This skill captures user-centered requirements as structured user stories to guide backlog items, acceptance criteria, and cross-functional collaboration.

PlanningProductUxWriting
pest-analysis
Ai

This skill guides a PEST analysis to identify political, economic, social, and technological factors and translate them into actionable strategies.

AnalyticsPlanningResearchStrategy
five-whys
Ai

This skill guides you through root cause analysis using the Five Whys technique to uncover underlying issues and drive effective fixes.

AnalyticsDataDebuggingPlanning+1
status-quo-bias
Design

This skill helps you design product migrations and feature launches that respect status quo bias, easing adoption and maximizing completion.

PlanningProductStrategyUx
react-use-client-boundary
Debugging

This skill helps you correctly manage React Server Components boundaries by guiding when to use the use client directive for optimal client/server separation.

NextjsPerformanceReact
graph-thinking
Ai

This skill helps you visualize complex dependencies and architectures using graph-thinking to map relationships and non-linear problem solving for clearer

AnalyticsDataDesignPlanning+2
naming-cheatsheet
Code Review

This skill enforces consistent naming using the A/HC/LC pattern to improve readability and maintainability across variables and functions.

JavascriptProductivityRefactorTypescript
cognitive-load
Design

This skill helps you optimize interfaces by applying Cognitive Load Theory to reduce extraneous load and enhance germane learning.

PlanningProductResearchUx
react-use-state
Debugging

This skill helps you implement and troubleshoot React useState usage, guiding when to use state, avoid pitfalls, and optimize local component state.

FrontendJavascriptReact
trust-psychology
Branding

This skill helps you design landing pages and checkout flows that reduce perceived risk by applying proven trust signals.

ContentDesignGrowthMarketing+2
hypothesis-tree
Analytics

This skill helps you structure complex questions into testable hypotheses for MECE coverage, enabling faster validation of ideas and experiments.

DataPlanningProductResearch+1
curiosity-gap
Content

This skill helps you design headlines, notifications, and onboarding flows that spark curiosity and boost engagement by revealing just enough.

CopywritingDesignGrowthMarketing+3
making-product-decisions
Analytics

This skill helps you structure and document product decisions using a framework that improves alignment, traceability, and learning across teams.

DocsPlanningProductStrategy
game-theory-tit-for-tat
Planning

This skill guides you to apply Tit for Tat in repeated interactions to maximize cooperative outcomes and manage conflicts.

ResearchStrategy
nextjs-image-art-direction
Frontend

This skill helps implement art direction for Next.js images using getImageProps to serve viewport-specific compositions and assets.

NextjsPerformanceUx
fogg-behavior-model
Analytics

This skill helps you apply the Fogg Behavior Model to diagnose why users fail to act and design targeted prompts.

DesignGrowthProductResearch+1
kanban
Analytics

This skill visualizes workflow with Kanban boards, limits WIP, and optimizes flow to improve delivery and continuous improvement.

OperationsPlanningProductProductivity
typescript-interface-vs-type
Frontend

This skill helps you decide when to use interface versus type in TypeScript to improve type safety and maintainability.

PerformanceRefactorTypescript
css-container-queries
Design

This skill helps you implement responsive components using CSS container queries and Tailwind, enabling components to adapt to their container size.

FrontendTailwindUx
social-proof-psychology
Branding

This skill helps you design landing pages and conversions by applying social proof tactics to build trust and boost actions.

CopywritingDesignGrowthMarketing+2
loss-aversion-psychology
Analytics

This skill helps you apply loss aversion principles to retention, pricing, and onboarding to nudge users toward desired actions.

CopywritingDesignGrowthProduct+1
jobs-to-be-done
Analytics

This skill helps you apply Jobs-to-be-Done insights to shape product strategy, conduct research interviews, write user stories, and identify true competition.

DataDesignProductResearch+2
halo-effect-psychology
Branding

This skill helps you leverage the halo effect to optimize first impressions, brand perception, and feature presentation across onboarding and marketing.

CopywritingDesignMarketingProduct+1
More from this maintainer
Other repositories and skills published under the same GitHub owner.
Skills library
Jump back to the full directory or explore grouped topics.
Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational