Claude Code - herougo/SoftwareEngineerKnowledgeRepository GitHub Wiki
- What's the best way to input line numbers (e.g. "This function should be used for X")?
- Does /plan just enter plan mode? Is that all it does?
https://code.claude.com/docs/en/overview#terminal
Run claude in cmd
Source
| Command | Description |
|---|---|
| /init | "Initialize project with CLAUDE.md guide" |
| /clear | "clears the conversation history" (of the chat I assume?) |
| /context | "Visualize current context usage as a colored grid" |
| /help | "Get usage help" |
| /permissions | "View or update permissions" |
| /model | "Select or change the AI model" (use the left/right arrows to adjust effort level) |
| /resume | Resume a conversation (opens the session picker) |
| /mcp | "Manage MCP server connections and OAuth authentication" |
| /plan | "Enter plan mode directly from the prompt" |
{
"permissions": {
"allow": [
"Bash(npm run test *)",
"Bash(git commit *)",
],
"deny": [
"Bash(git push *)"
]
}
}"Claude Code hooks provide a way to register custom shell commands to perform permission evaluation at runtime. When Claude Code makes a tool call, PreToolUse hooks run before the permission system, and the hook output can determine whether to approve or deny the tool call in place of the permission system."
"A markdown file where you store project-specific instructions, conventions, and context that Claude should know every session."
Note
- there is a global Claude.md file and a project-specific Claude.md file
Tips
- Joe Kim (youtuber) recommends aim for about 300 lines.
- Minimize its size to keep the context clean.
- Some recommend against using knowledge from /init (this would be stuff Claude can figure out on its own anyways)
- Include a critical rules section for "always do this" or "never do this" (e.g. past Claude mistakes)
https://code.claude.com/docs/en/skills
"Skills extend what Claude can do. Create a SKILL.md file with instructions, and Claude adds it to its toolkit. Claude uses skills when relevant, or you can invoke one directly with /skill-name."
Where skills live
| Location | Path | Applies to |
|---|---|---|
| Personal | ~/.claude/skills/<skill-name>/SKILL.md |
All your projects |
| Project | .claude/skills/<skill-name>/SKILL.md |
This project only |
Folder structure
my-skill/
├── SKILL.md # Main instructions (required)
├── template.md # Template for Claude to fill in
├── examples/
│ └── sample.md # Example output showing expected format
└── scripts/
└── validate.sh # Script Claude can execute
The SKILL.md contains the main instructions and is required.
(TODO)
Note: MCP can blow up the context window.
- double escape: clears textbox keyboard shortcut
Put what we just did in a skill
February 23, 2026: Consider using Opus 4.5 over Sonnet 4.5
-
How do I input images?
- You can drag images to the terminal "textbox".
-
What if I want to assign custom aliases to key prompts (e.g.
alias make-skill='Put what we just did in a skill')? Is there a way to make custom commands?- Yes. Look into skills!
-
How do I see code changes?
- Reddit says to use git.
-
Should I commit skills to the repo itself?
- Google says absolutely!