← スキル一覧に戻る

weight-track-database
by marcopeg
⭐ 0🍴 0📅 2025年12月2日
SKILL.md
name: Weight Track Database description: Describes the structure of the weight tracker database that allows to store and read weight records for the user version: 1.0.0
Overview
The Weight Tracker database uses a JSON file to store weight entries provided by the user.
File Location
The data file is available at {root}/db/weight-tracker.json
Writing to the db
- Before writing into the db, identify which is the best approach:
- in-memory change: load the entire file in-memory, apply the change, serialize it back
- text-based change: scan the file in text mode and apply the change as a patch
-
Isolate the atomical change you want to apply
-
Read existing data to understand which kind of operation is needed
- insert
- update
- delete
- Apply the change with the identified approach.
ALWAYS: explain the execution plan to the user as output in the chat
Reading from the DB
- Identify the best approach to the read request:
- in-memory change: load the entire file in-memory, evaluate logic to perform the read
- text-based change: scan the file in text mode and calculate the expected information as context
-
Perform the read of the pertinent information
-
Perform aggregations if needed
ALWAYS: explain the execution plan to the user as output in the chat
Data Structure
Always ensure the database keeps a data structure like this:
{
"2025": {
"11": {
"10": 99.0,
"12": 99.5
}
}
}
More info:
- the indexing of the data is: year -> month -> day
- the value of a day is a number, the database is unit agnostic
- if a new writing request targets an existing day, override the value for the day
スコア
総合スコア
35/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です