Skip to content
Merged

Dev #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<p align="center">
<div align="center">
<img src="assets/logo_icon.svg" width="128" alt="Coding With Beat"/>
</p>

# Coding With Beat
<h1>Coding With Beat</h1>
</div>

![Python](https://img.shields.io/badge/Python-3.10+-3776AB?style=flat-square&logo=python&logoColor=white)
![Platform](https://img.shields.io/badge/platform-macOS-000000?style=flat-square&logo=apple&logoColor=white)
Expand Down
100 changes: 100 additions & 0 deletions docs/assets/logo_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coding With Beat</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='5' fill='%230d0d10'/><text x='16' y='24' font-size='20' text-anchor='middle' fill='%239bbc0f'>♪</text></svg>">
<link rel="icon" href="assets/logo_icon.svg" type="image/svg+xml">
<meta name="description" content="A pixel-art DJ companion for Claude Code. Music while you vibe-code.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
Expand Down Expand Up @@ -82,6 +82,8 @@
font-size: 12px;
font-weight: 700;
letter-spacing: .12em;
display: flex;
align-items: center;
}

.nav-logo span { color: var(--amber); }
Expand Down Expand Up @@ -641,7 +643,7 @@

<!-- NAV -->
<nav>
<div class="nav-logo"><span>coding</span>-with-beat</div>
<div class="nav-logo"><img src="assets/logo_icon.svg" alt="" style="width:22px;height:22px;vertical-align:middle;margin-right:6px;image-rendering:pixelated"><span>coding</span>-with-beat</div>
<div class="nav-right">
<a class="gh-link" href="https://github.com/jaychempan/coding-with-beat" target="_blank" rel="noopener">GitHub ↗</a>
<div class="lang-toggle">
Expand Down
13 changes: 13 additions & 0 deletions skills/cwb/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ Do NOT generate keywords. For any request that isn't a specific song/artist/comm

Display results grouped by angle with emoji labels (returned by the tool), number globally across groups (1, 2, 3…), end with: 喜欢哪首?说编号我来播。 Do NOT auto-play.

## Library-only search

When the user explicitly restricts the search to their local library — trigger phrases include:
- 中文: "从资料库找"、"资料库里有没有"、"我已经有这首"、"本地库里"
- English: "in my library", "library only", "do I have", "from my library"

**Do this:**
1. Call `search(query)` as normal.
2. From the results, **only show entries where `source == "library"`**.
3. If none are found, tell the user: "资料库里没找到,要不要搜一下线上?" — do NOT auto-expand to catalog.

Do NOT call `list_library` for this — `search()` is more targeted. `list_library` is only useful when the user wants to **browse all** tracks without a specific query.

## play_number — number parsing

Always parse the user's number expression before calling `play_number(N)`:
Expand Down
Loading