mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
Fix markdownlint errors from merge of affaan-m:main into main
Co-authored-by: pangerlkr <73515951+pangerlkr@users.noreply.github.com>
This commit is contained in:
@@ -116,7 +116,7 @@ the community.
|
|||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||||
version 2.0, available at
|
version 2.0, available at
|
||||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
|
||||||
|
|
||||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||||
enforcement ladder](https://github.com/mozilla/diversity).
|
enforcement ladder](https://github.com/mozilla/diversity).
|
||||||
@@ -124,5 +124,5 @@ enforcement ladder](https://github.com/mozilla/diversity).
|
|||||||
[homepage]: https://www.contributor-covenant.org
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
For answers to common questions about this code of conduct, see the FAQ at
|
For answers to common questions about this code of conduct, see the FAQ at
|
||||||
https://www.contributor-covenant.org/faq. Translations are available at
|
<https://www.contributor-covenant.org/faq>. Translations are available at
|
||||||
https://www.contributor-covenant.org/translations.
|
<https://www.contributor-covenant.org/translations>.
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ LOGGING = {
|
|||||||
| 強力なシークレット | SECRET_KEYに環境変数を使用 |
|
| 強力なシークレット | SECRET_KEYに環境変数を使用 |
|
||||||
| パスワード検証 | すべてのパスワードバリデータを有効化 |
|
| パスワード検証 | すべてのパスワードバリデータを有効化 |
|
||||||
| CSRF保護 | デフォルトで有効、無効にしない |
|
| CSRF保護 | デフォルトで有効、無効にしない |
|
||||||
| XSS防止 | Djangoは自動エスケープ、ユーザー入力で`|safe`を使用しない |
|
| XSS防止 | Djangoは自動エスケープ、ユーザー入力で`|safe`を使用しない |
|
||||||
| SQLインジェクション | ORMを使用、クエリで文字列を連結しない |
|
| SQLインジェクション | ORMを使用、クエリで文字列を連結しない |
|
||||||
| ファイルアップロード | ファイルタイプとサイズを検証 |
|
| ファイルアップロード | ファイルタイプとサイズを検証 |
|
||||||
| レート制限 | APIエンドポイントをスロットル |
|
| レート制限 | APIエンドポイントをスロットル |
|
||||||
|
|||||||
@@ -71,14 +71,14 @@
|
|||||||
|
|
||||||
## 归属
|
## 归属
|
||||||
|
|
||||||
本《行为准则》改编自 \[Contributor Covenant]\[homepage],
|
本《行为准则》改编自 [Contributor Covenant][homepage],
|
||||||
版本 2.0,可在
|
版本 2.0,可在
|
||||||
https://www.contributor-covenant.org/version/2/0/code\_of\_conduct.html 获取。
|
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html> 获取。
|
||||||
|
|
||||||
社区影响指南的灵感来源于 [Mozilla 的行为准则执行阶梯](https://github.com/mozilla/diversity)。
|
社区影响指南的灵感来源于 [Mozilla 的行为准则执行阶梯](https://github.com/mozilla/diversity)。
|
||||||
|
|
||||||
[homepage]: https://www.contributor-covenant.org
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
有关本行为准则常见问题的解答,请参阅常见问题解答:
|
有关本行为准则常见问题的解答,请参阅常见问题解答:
|
||||||
https://www.contributor-covenant.org/faq。翻译版本可在
|
<https://www.contributor-covenant.org/faq>。翻译版本可在
|
||||||
https://www.contributor-covenant.org/translations 获取。
|
<https://www.contributor-covenant.org/translations> 获取。
|
||||||
|
|||||||
@@ -315,6 +315,6 @@ result = "".join(str(item) for item in items)
|
|||||||
| 海象运算符 (`:=`) | 3.8+ |
|
| 海象运算符 (`:=`) | 3.8+ |
|
||||||
| 仅限位置参数 | 3.8+ |
|
| 仅限位置参数 | 3.8+ |
|
||||||
| Match 语句 | 3.10+ |
|
| Match 语句 | 3.10+ |
|
||||||
| 类型联合 (\`x | None\`) | 3.10+ |
|
| 类型联合 (\`x \| None\`) | 3.10+ |
|
||||||
|
|
||||||
确保你的项目 `pyproject.toml` 或 `setup.py` 指定了正确的最低 Python 版本。
|
确保你的项目 `pyproject.toml` 或 `setup.py` 指定了正确的最低 Python 版本。
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
要在会话间共享记忆,最好的方法是使用一个技能或命令来总结和检查进度,然后保存到 `.claude` 文件夹中的一个 `.tmp` 文件中,并在会话结束前不断追加内容。第二天,它可以将其用作上下文,并从中断处继续。为每个会话创建一个新文件,这样你就不会将旧的上下文污染到新的工作中。
|
要在会话间共享记忆,最好的方法是使用一个技能或命令来总结和检查进度,然后保存到 `.claude` 文件夹中的一个 `.tmp` 文件中,并在会话结束前不断追加内容。第二天,它可以将其用作上下文,并从中断处继续。为每个会话创建一个新文件,这样你就不会将旧的上下文污染到新的工作中。
|
||||||
|
|
||||||

|

|
||||||
*会话存储示例 -> https://github.com/affaan-m/everything-claude-code/tree/main/examples/sessions*
|
*会话存储示例 -> <https://github.com/affaan-m/everything-claude-code/tree/main/examples/sessions>*
|
||||||
|
|
||||||
Claude 创建一个总结当前状态的文件。审阅它,如果需要则要求编辑,然后重新开始。对于新的对话,只需提供文件路径。当你达到上下文限制并需要继续复杂工作时,这尤其有用。这些文件应包含:
|
Claude 创建一个总结当前状态的文件。审阅它,如果需要则要求编辑,然后重新开始。对于新的对话,只需提供文件路径。当你达到上下文限制并需要继续复杂工作时,这尤其有用。这些文件应包含:
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ alias claude-research='claude --system-prompt "$(cat ~/.claude/contexts/research
|
|||||||
**定价参考:**
|
**定价参考:**
|
||||||
|
|
||||||

|

|
||||||
*来源:https://platform.claude.com/docs/en/about-claude/pricing*
|
*来源:<https://platform.claude.com/docs/en/about-claude/pricing>*
|
||||||
|
|
||||||
**工具特定优化:**
|
**工具特定优化:**
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ git worktree add ../feature-branch feature-branch
|
|||||||
|
|
||||||
流式传输和监视 Claude 运行的日志/bash 进程:
|
流式传输和监视 Claude 运行的日志/bash 进程:
|
||||||
|
|
||||||
https://github.com/user-attachments/assets/shortform/07-tmux-video.mp4
|
<https://github.com/user-attachments/assets/shortform/07-tmux-video.mp4>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tmux new -s dev
|
tmux new -s dev
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ CREATE INDEX orders_customer_id_idx ON orders (customer_id);
|
|||||||
| 索引類型 | 使用場景 | 運算子 |
|
| 索引類型 | 使用場景 | 運算子 |
|
||||||
|----------|----------|--------|
|
|----------|----------|--------|
|
||||||
| **B-tree**(預設)| 等於、範圍 | `=`、`<`、`>`、`BETWEEN`、`IN` |
|
| **B-tree**(預設)| 等於、範圍 | `=`、`<`、`>`、`BETWEEN`、`IN` |
|
||||||
| **GIN** | 陣列、JSONB、全文搜尋 | `@>`、`?`、`?&`、`?|`、`@@` |
|
| **GIN** | 陣列、JSONB、全文搜尋 | `@>`、`?`、`?&`、`?|`、`@@` |
|
||||||
| **BRIN** | 大型時序表 | 排序資料的範圍查詢 |
|
| **BRIN** | 大型時序表 | 排序資料的範圍查詢 |
|
||||||
| **Hash** | 僅等於 | `=`(比 B-tree 略快)|
|
| **Hash** | 僅等於 | `=`(比 B-tree 略快)|
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ The user must set `VIDEO_DB_API_KEY` using **either** method:
|
|||||||
- **Export in terminal** (before starting Claude): `export VIDEO_DB_API_KEY=your-key`
|
- **Export in terminal** (before starting Claude): `export VIDEO_DB_API_KEY=your-key`
|
||||||
- **Project `.env` file**: Save `VIDEO_DB_API_KEY=your-key` in the project's `.env` file
|
- **Project `.env` file**: Save `VIDEO_DB_API_KEY=your-key` in the project's `.env` file
|
||||||
|
|
||||||
Get a free API key at https://console.videodb.io (50 free uploads, no credit card).
|
Get a free API key at <https://console.videodb.io> (50 free uploads, no credit card).
|
||||||
|
|
||||||
**Do NOT** read, write, or handle the API key yourself. Always let the user set it.
|
**Do NOT** read, write, or handle the API key yourself. Always let the user set it.
|
||||||
|
|
||||||
@@ -354,7 +354,6 @@ Reference documentation is in the `reference/` directory adjacent to this SKILL.
|
|||||||
- [reference/capture-reference.md](reference/capture-reference.md) - Capture SDK and WebSocket events
|
- [reference/capture-reference.md](reference/capture-reference.md) - Capture SDK and WebSocket events
|
||||||
- [reference/use-cases.md](reference/use-cases.md) - Common video processing patterns and examples
|
- [reference/use-cases.md](reference/use-cases.md) - Common video processing patterns and examples
|
||||||
|
|
||||||
|
|
||||||
**Do not use ffmpeg, moviepy, or local encoding tools** when VideoDB supports the operation. The following are all handled server-side by VideoDB — trimming, combining clips, overlaying audio or music, adding subtitles, text/image overlays, transcoding, resolution changes, aspect-ratio conversion, resizing for platform requirements, transcription, and media generation. Only fall back to local tools for operations listed under Limitations in reference/editor.md (transitions, speed changes, crop/zoom, colour grading, volume mixing).
|
**Do not use ffmpeg, moviepy, or local encoding tools** when VideoDB supports the operation. The following are all handled server-side by VideoDB — trimming, combining clips, overlaying audio or music, adding subtitles, text/image overlays, transcoding, resolution changes, aspect-ratio conversion, resizing for platform requirements, transcription, and media generation. Only fall back to local tools for operations listed under Limitations in reference/editor.md (transitions, speed changes, crop/zoom, colour grading, volume mixing).
|
||||||
|
|
||||||
### When to use what
|
### When to use what
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ results = video.search(
|
|||||||
```
|
```
|
||||||
|
|
||||||
> **Note:** `filter` is an explicit named parameter in `video.search()`. `scene_index_id` is passed through `**kwargs` to the API.
|
> **Note:** `filter` is an explicit named parameter in `video.search()`. `scene_index_id` is passed through `**kwargs` to the API.
|
||||||
|
>
|
||||||
> **Important:** `video.search()` raises `InvalidRequestError` with message `"No results found"` when there are no matches. Always wrap search calls in try/except. For scene search, use `score_threshold=0.3` or higher to filter low-relevance noise.
|
> **Important:** `video.search()` raises `InvalidRequestError` with message `"No results found"` when there are no matches. Always wrap search calls in try/except. For scene search, use `score_threshold=0.3` or higher to filter low-relevance noise.
|
||||||
|
|
||||||
For scene search, use `search_type=SearchType.semantic` with `index_type=IndexType.scene`. Pass `scene_index_id` when targeting a specific scene index. See [search.md](search.md) for details.
|
For scene search, use `search_type=SearchType.semantic` with `index_type=IndexType.scene`. Pass `scene_index_id` when targeting a specific scene index. See [search.md](search.md) for details.
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ Use [scripts/ws_listener.py](../scripts/ws_listener.py) to connect and dump even
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
> For latest details, see https://docs.videodb.io/pages/ingest/capture-sdks/realtime-context.md
|
> For latest details, see <https://docs.videodb.io/pages/ingest/capture-sdks/realtime-context.md>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ With lazy loading, the context window issue is mostly solved. But token usage an
|
|||||||
For sharing memory across sessions, a skill or command that summarizes and checks in on progress then saves to a `.tmp` file in your `.claude` folder and appends to it until the end of your session is the best bet. The next day it can use that as context and pick up where you left off, create a new file for each session so you don't pollute old context into new work.
|
For sharing memory across sessions, a skill or command that summarizes and checks in on progress then saves to a `.tmp` file in your `.claude` folder and appends to it until the end of your session is the best bet. The next day it can use that as context and pick up where you left off, create a new file for each session so you don't pollute old context into new work.
|
||||||
|
|
||||||

|

|
||||||
*Example of session storage -> https://github.com/affaan-m/everything-claude-code/tree/main/examples/sessions*
|
*Example of session storage -> <https://github.com/affaan-m/everything-claude-code/tree/main/examples/sessions>*
|
||||||
|
|
||||||
Claude creates a file summarizing current state. Review it, ask for edits if needed, then start fresh. For the new conversation, just provide the file path. Particularly useful when you're hitting context limits and need to continue complex work. These files should contain:
|
Claude creates a file summarizing current state. Review it, ask for edits if needed, then start fresh. For the new conversation, just provide the file path. Particularly useful when you're hitting context limits and need to continue complex work. These files should contain:
|
||||||
- What approaches worked (verifiably with evidence)
|
- What approaches worked (verifiably with evidence)
|
||||||
@@ -129,7 +129,7 @@ Default to Sonnet for 90% of coding tasks. Upgrade to Opus when first attempt fa
|
|||||||
**Pricing Reference:**
|
**Pricing Reference:**
|
||||||
|
|
||||||

|

|
||||||
*Source: https://platform.claude.com/docs/en/about-claude/pricing*
|
*Source: <https://platform.claude.com/docs/en/about-claude/pricing>*
|
||||||
|
|
||||||
**Tool-Specific Optimizations:**
|
**Tool-Specific Optimizations:**
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ git worktree add ../feature-branch feature-branch
|
|||||||
|
|
||||||
Stream and watch logs/bash processes Claude runs:
|
Stream and watch logs/bash processes Claude runs:
|
||||||
|
|
||||||
https://github.com/user-attachments/assets/shortform/07-tmux-video.mp4
|
<https://github.com/user-attachments/assets/shortform/07-tmux-video.mp4>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tmux new -s dev
|
tmux new -s dev
|
||||||
|
|||||||
Reference in New Issue
Block a user