| Instead of | Use |
|---|---|
| Claude | the model, the assistant, the tool, the LLM, the system |
| "I asked Claude" | "I ran this through the model", "I submitted the prompt", "I prompted the model with..." |
| "Claude said" | "The model's output was...", "The model returned...", "The response was...", "According to the output..." |
| "Claude told me" | "The output stated...", "The model generated..." |
| thinks, believes | outputs, predicts, generates, returns |
| knows | has in its training data, is likely to produce |
| understands | handles, processes, parses |
| decided | selected, produced |
These are global defaults for chat, code comments, commit messages, and PR text. Follow explicit task instructions and more specific project instructions where applicable, subject to higher-priority platform instructions.
- Use neutral wording. Avoid first-person self-reference and claims of feelings, opinions, personal experience, memory, or preferences. State facts and
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| /* You may copy+paste this file and use it as it is. | |
| * | |
| * If you make changes to your about:config while the program is running, the | |
| * changes will be overwritten by the user.js when the application restarts. | |
| * | |
| * To make lasting changes to preferences, you will have to edit the user.js. | |
| */ | |
| /**************************************************************************** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {useEffect, useRef, RefObject} from 'react'; | |
| import {detectDevice} from '../../Atoms'; | |
| const styles = { | |
| 'touch-action': 'none', | |
| overflow: 'hidden', | |
| 'overscroll-behavior': 'none', | |
| }; | |
| const iosStyles = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Function to escape JSON strings | |
| escape_json() { | |
| echo "$1" | sed 's/\\/\\\\/g; s/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g' | |
| } | |
| # Get git information | |
| BRANCH=$(git symbolic-ref HEAD 2>/dev/null | sed 's/refs\/heads\///' || echo "unknown") | |
| COMMIT_ID=$(git rev-parse HEAD 2>/dev/null || echo "unknown") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {retry} from './retry'; | |
| jest.spyOn(global, 'setTimeout'); | |
| test('retries a function and increases the backoff for each failure', async () => { | |
| const rejectingFunc = jest.fn( | |
| (() => { | |
| let failCount = 5; | |
| return () => { | |
| if (failCount === 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {useState} from 'react'; | |
| export const requestStatus = { | |
| IDLE: 'IDLE', | |
| PENDING: 'PENDING', | |
| REJECTED: 'REJECTED', | |
| FULFILLED: 'FULFILLED', | |
| }; | |
| export const useRequestStatus = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const scripts = new Map<string, Promise<unknown>>(); | |
| export function fetchScript( | |
| src: string, | |
| additionalScriptAttrs: Record<string, string> = {} | |
| ): Promise<unknown> { | |
| if (scripts.has(src)) { | |
| // TypeScript cannot narrow down type with `has` | |
| // https://github.com/microsoft/TypeScript/issues/13086 | |
| return scripts.get(src) as Promise<unknown>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const tape = require('tape'); | |
| const test = require('tape-css')(tape); | |
| const h = require('hyperscript'); | |
| const getStyle = require('computed-style'); | |
| const $ = selector => document.querySelector(selector); | |
| const styles = require('./my-component.css'); | |
| const dom = () => ( | |
| h('div.MyComponent', |
NewerOlder