RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Copilot instructions/j7-dev/everything-github-copilot

Copilot instructions

.github/instructions/typescript.instructions.md
Copilot instructions

Quality

62/100

Scores the file, not the repository.

Length

325 words

15 headings · 7 code blocks

Repository

19

— · pushed 151 days ago

Last changed

3 days ago

First indexed 3 days ago.
j7-dev/everything-github-copilot/.github/instructions/typescript.instructions.mdRawGitHub
1---
2applyTo: "**/*.ts,**/*.tsx"
3---
4 
5# TypeScript/JavaScript Coding Style
6 
7> This file extends [common/coding-style.md](../common/coding-style.md) with TypeScript/JavaScript specific content.
8 
9## Immutability
10 
11Use spread operator for immutable updates:
12 
13```typescript
14// WRONG: Mutation
15function updateUser(user, name) {
16 user.name = name // MUTATION!
17 return user
18}
19 
20// CORRECT: Immutability
21function updateUser(user, name) {
22 return {
23 ...user,
24 name
25 }
26}
27```
28 
29## Error Handling
30 
31Use async/await with try-catch:
32 
33```typescript
34try {
35 const result = await riskyOperation()
36 return result
37} catch (error) {
38 console.error('Operation failed:', error)
39 throw new Error('Detailed user-friendly message')
40}
41```
42 
43## Input Validation
44 
45Use Zod for schema-based validation:
46 
47```typescript
48import { z } from 'zod'
49 
50const schema = z.object({
51 email: z.string().email(),
52 age: z.number().int().min(0).max(150)
53})
54 
55const validated = schema.parse(input)
56```
57 
58## Console.log
59 
60- No `console.log` statements in production code
61- Use proper logging libraries instead
62- See hooks for automatic detection
63 
64 
65# TypeScript/JavaScript Patterns
66 
67> This file extends [common/patterns.md](../common/patterns.md) with TypeScript/JavaScript specific content.
68 
69## API Response Format
70 
71```typescript
72interface ApiResponse<T> {
73 success: boolean
74 data?: T
75 error?: string
76 meta?: {
77 total: number
78 page: number
79 limit: number
80 }
81}
82```
83 
84## Custom Hooks Pattern
85 
86```typescript
87export function useDebounce<T>(value: T, delay: number): T {
88 const [debouncedValue, setDebouncedValue] = useState<T>(value)
89 
90 useEffect(() => {
91 const handler = setTimeout(() => setDebouncedValue(value), delay)
92 return () => clearTimeout(handler)
93 }, [value, delay])
94 
95 return debouncedValue
96}
97```
98 
99## Repository Pattern
100 
101```typescript
102interface Repository<T> {
103 findAll(filters?: Filters): Promise<T[]>
104 findById(id: string): Promise<T | null>
105 create(data: CreateDto): Promise<T>
106 update(id: string, data: UpdateDto): Promise<T>
107 delete(id: string): Promise<void>
108}
109```
110 
111 
112# TypeScript/JavaScript Security
113 
114> This file extends [common/security.md](../common/security.md) with TypeScript/JavaScript specific content.
115 
116## Secret Management
117 
118```typescript
119// NEVER: Hardcoded secrets
120const apiKey = "sk-proj-xxxxx"
121 
122// ALWAYS: Environment variables
123const apiKey = process.env.OPENAI_API_KEY
124 
125if (!apiKey) {
126 throw new Error('OPENAI_API_KEY not configured')
127}
128```
129 
130## Agent Support
131 
132- Use **security-reviewer** skill for comprehensive security audits
133 
134 
135# TypeScript/JavaScript Testing
136 
137> This file extends [common/testing.md](../common/testing.md) with TypeScript/JavaScript specific content.
138 
139## E2E Testing
140 
141Use **Playwright** as the E2E testing framework for critical user flows.
142 
143## Agent Support
144 
145- **e2e-runner** - Playwright E2E testing specialist

Sections

  • TypeScript/JavaScript Coding Style
  • Immutability
  • Error Handling
  • Input Validation
  • Console.log
  • TypeScript/JavaScript Patterns
  • API Response Format
  • Custom Hooks Pattern
  • Repository Pattern
  • TypeScript/JavaScript Security
  • Secret Management
  • Agent Support
  • TypeScript/JavaScript Testing
  • E2E Testing
  • Agent Support

What it covers

testlint-formatcode-styletypestesting-strategysecurityapiagent-behaviour

Stack — with the evidence

javascript

(1.00)

eslint

(1.00)

node

(0.70)

typescript

(0.60)

github-actions

(0.60)

Glob targeting

  • **/*.ts
  • **/*.tsx

Format

Copilot instructions

Two layers: one always-on repo file, plus optional glob-scoped instruction files. Lives under .github/ rather than the repo root, which is the tell that it is aimed at the GitHub platform surface as much as the editor.

What the corpus says about it

Repository

Owner
j7-dev
Language
—
License
—
Archived
no

All configs in this repo

Also in j7-dev/everything-github-copilot

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
j7-dev/everything-github-copilot.codex/AGENTS.md · 19AGENTS.mdjavascripteslint+3securityagent-behaviour59/1003 days ago
j7-dev/everything-github-copilot.github/instructions/python.instructions.md · 19Copilot instructionsjavascripteslint+3testlint-formatstyletypes+285/1003 days ago
j7-dev/everything-github-copilot.github/instructions/swift.instructions.md · 19Copilot instructionsjavascripteslint+3testlint-formatstyletypes+281/1003 days ago
j7-dev/everything-github-copilotAGENTS.md · 19AGENTS.mdjavascripteslint+3buildteststylearch+477/1003 days ago
j7-dev/everything-github-copilot.github/copilot-instructions.md · 19Copilot instructionsjavascripteslint+3buildtestlint-formatstyle+676/1003 days ago
j7-dev/everything-github-copilot.github/instructions/go.instructions.md · 19Copilot instructionsjavascripteslint+3testlint-formatstyletesting-strategy+177/1003 days ago
j7-dev/everything-github-copilotCLAUDE.md · 19CLAUDE.mdjavascripteslint+3testarchagent-behaviour81/1003 days ago
j7-dev/everything-github-copilotskills/react-best-practices/AGENTS.md · 19AGENTS.mdjavascripteslint+3buildlint-formatstylearch+864/1003 days ago
Diff against .codex/AGENTS.md Diff against .github/instructions/python.instructions.md Diff against .github/instructions/swift.instructions.md Diff against AGENTS.md Diff against .github/copilot-instructions.md Diff against .github/instructions/go.instructions.md Diff against CLAUDE.md Diff against skills/react-best-practices/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63Copilot instructionstypescriptreact+7buildlint-formatstylearch+4100/1003 days ago
louislam/uptime-kuma.github/copilot-instructions.md · 90kCopilot instructionstypescriptjavascript+10setupbuildtestlint-format+9100/1003 days ago
HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17Copilot instructionsnodejavascriptsetupbuildtestlint-format+7100/1003 days ago
JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31kCopilot instructionstypescriptnode+7buildlint-formatstylearch+397/1002 days ago
bagisto/bagisto.github/copilot-instructions.md · 28kCopilot instructionsphplaravel+8setupbuildteststyle+597/1003 days ago
darkmatter/nixmac.github/copilot-instructions.md · 24Copilot instructionstypescriptrust+14setupbuildtestlint-format+896/1003 days ago
nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32Copilot instructionstypescriptnode+8setupbuildtestlint-format+1196/1003 days ago
thangaram611/second-brain.github/copilot-instructions.md · 0Copilot instructionstypescriptnode+12setupteststylearch+496/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack