העניקו ל-Claude דרך לאמת את עבודתו

חקרו קודם, אחר כך תכננו, ורק אז קדדו

חקרו

read /src/auth and understand how we handle sessions and login.
also look at how we manage environment variables for secrets.

תכננו

I want to add Google OAuth. What files need to change?
What's the session flow? Create a plan.

יישמו

implement the OAuth flow from your plan. write tests for the
callback handler, run the test suite and fix any failures.

בצעו Commit

commit with a descriptive message and open a PR

ספקו הקשר ספציפי בפרומפטים שלכם

ספקו תוכן עשיר

הגדירו את סביבת העבודה שלכם

כתבו קובץ CLAUDE.md יעיל

# Code style
- Use ES modules (import/export) syntax, not CommonJS (require)
- Destructure imports when possible (eg. import { foo } from 'bar')

# Workflow
- Be sure to typecheck when you're done making a series of code changes
- Prefer running single tests, and not the whole test suite, for performance
See @README.md for project overview and @package.json for available npm commands.

# Additional Instructions
- Git workflow: @docs/git-instructions.md
- Personal overrides: @~/.claude/my-project-instructions.md

הגדירו הרשאות

השתמשו בכלי CLI

חברו שרתי MCP

הגדירו Hooks

צרו כישורים

---
name: api-conventions
description: REST API design conventions for our services
---
# API Conventions
- Use kebab-case for URL paths
- Use camelCase for JSON properties
- Always include pagination for list endpoints
- Version APIs in the URL path (/v1/, /v2/)
---
name: fix-issue
description: Fix a GitHub issue
disable-model-invocation: true
---
Analyze and fix the GitHub issue: $ARGUMENTS.

1. Use `gh issue view` to get the issue details
2. Understand the problem described in the issue
3. Search the codebase for relevant files
4. Implement the necessary changes to fix the issue
5. Write and run tests to verify the fix
6. Ensure code passes linting and type checking
7. Create a descriptive commit message
8. Push and create a PR

צרו תת-סוכנים מותאמים אישית

---
name: security-reviewer
description: Reviews code for security vulnerabilities
tools: Read, Grep, Glob, Bash
model: opus
---
You are a senior security engineer. Review code for:
- Injection vulnerabilities (SQL, XSS, command injection)
- Authentication and authorization flaws
- Secrets or credentials in code
- Insecure data handling

Provide specific line references and suggested fixes.

התקינו תוספים

תקשרו ביעילות

שאלו שאלות על בסיס הקוד

אפשרו ל-Claude לראיין אתכם

I want to build [brief description]. Interview me in detail using the AskUserQuestion tool.

Ask about technical implementation, UI/UX, edge cases, concerns, and tradeoffs. Don't ask obvious questions, dig into the hard parts I might not have considered.

Keep interviewing until we've covered everything, then write a complete spec to SPEC.md.

נהלו את הסשן שלכם

בצעו תיקוני כיוון מוקדם ותכופות

נהלו את ההקשר באגרסיביות

השתמשו בתת-סוכנים לחקירה

Use subagents to investigate how our authentication system handles token
refresh, and whether we have any existing OAuth utilities I should reuse.
use a subagent to review this code for edge cases

חזרו אחורה עם נקודות בקרה

חזרו לשיחות

claude --continue    # Resume the most recent conversation
claude --resume      # Select from recent conversations

אוטומציה וסקיילינג

הפעילו במצב לא אינטראקטיבי

# One-off queries
claude -p "Explain what this project does"

# Structured output for scripts
claude -p "List all API endpoints" --output-format json

# Streaming for real-time processing
claude -p "Analyze this log file" --output-format stream-json

הפעילו סשנים מרובים של Claude

פזרו משימות על פני קבצים

צרו רשימת משימות

כתבו סקריפט לולאה על פני הרשימה

for file in $(cat files.txt); do
  claude -p "Migrate $file from React to Vue. Return OK or FAIL." \
    --allowedTools "Edit,Bash(git commit *)"
done

בחנו על מספר קבצים, ואז הפעילו בסקיילינג מלא

claude -p "<your prompt>" --output-format json | your_command

הפעילו באופן אוטונומי עם מצב אוטומטי

claude --permission-mode auto -p "fix all lint errors"

הימנעו מדפוסי כשל נפוצים

פתחו את האינטואיציה שלכם

משאבים קשורים