[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DMCD1SMWXFK7Y9Q6G4XMWM":3,"skill-same:01M7DMCD1SMWXFK7Y9Q6G4XMWM":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7DMCD1SMWXFK7Y9Q6G4XMWM","time-report",null,"Estimate active work time from local Claude Code, Cursor, Codex, and Pi conversations and attribute it to tickets and PRs. Optionally log the hours to Jira. Use for 'how much time did I spend yesterday', 'find my conversations and how long they took', 'log my hours', morning time reports.","0xr3ngar\u002Fbstack","0xr3ngar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F84232456?v=4","01M7DMBY7KMJD786Z133NVM8GX","Bogdan Nikolov","01M7DMBY8PMNK2WQSQJY490BFF",0,"MIT","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Ftime-report\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: time-report\ndescription: \"Estimate active work time from local Claude Code, Cursor, Codex, and Pi conversations and attribute it to tickets and PRs. Optionally log the hours to Jira. Use for 'how much time did I spend yesterday', 'find my conversations and how long they took', 'log my hours', morning time reports.\"\nlicense: MIT\ncompatibility: \"Requires Bun 1.4 or newer and local Claude Code, Cursor, Codex, or Pi transcripts. GitHub CLI and Jira access are optional.\"\n---\n\n# Time report\n\nEstimate active work time per ticket from conversation history. These estimates describe gaps between recorded messages, not continuous observation of the user. The default range is yesterday.\n\n## 1. Scan the conversations\n\nFirst locate the user's transcript files. Check the agent's configuration, environment, and any paths the user supplied. Verify that the directories contain session JSONL files; do not assume the defaults exist or contain the history the user wants. If locations remain unknown, report which paths you checked and ask only for the missing location. Complete the report for sources you can read.\n\nRun [the scanner](scripts\u002Fscan-sessions.ts) with Bun 1.4 or newer:\n\n```bash\nbun \u003Cskill-dir>\u002Fscripts\u002Fscan-sessions.ts --since YYYY-MM-DD --until YYYY-MM-DD\n```\n\nBoth dates are local midnights and `--until` is exclusive. With no flags it scans yesterday. Use the requested range, or yesterday even on weekends. State the dates in the report. Ask about the working calendar only when the requested range depends on it.\n\nLikely locations, also used as the scanner defaults:\n\n- Claude Code: `~\u002F.claude\u002Fprojects\u002F*\u002F*.jsonl`\n- Cursor: `~\u002F.cursor\u002Fprojects\u002F*\u002Fagent-transcripts\u002F**\u002F*.jsonl`\n- Codex: `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl` and `~\u002F.codex\u002Farchived_sessions\u002F**\u002F*.jsonl`\n- Pi: `~\u002F.pi\u002Fagent\u002Fsessions\u002F**\u002F*.jsonl`\n\nFor files stored elsewhere, pass the verified directory with `--transcripts SOURCE=DIR`. This replaces the defaults for that source and searches the directory recursively. Repeat the option to include multiple directories, including any separate archive:\n\n```bash\nbun \u003Cskill-dir>\u002Fscripts\u002Fscan-sessions.ts --since YYYY-MM-DD --until YYYY-MM-DD \\\n  --transcripts \"codex=\u002Fpath\u002Fto\u002Fsessions\" --transcripts \"pi=\u002Fanother\u002Fpath\u002Fsessions\"\n```\n\nAn empty result does not prove there was no activity. Confirm the locations and requested dates before drawing that conclusion.\n\nCodex and Pi use the working directory in the session header as the project. It prints UTC timestamps in one JSON line per conversation with `source`, `project`, `file`, `start`, `end`, `active_seconds`, `first_prompt`, `tickets` with each key and its first mention time, and `pull_requests`.\n\nConversations with less than one minute of estimated activity are omitted. Use `--home PATH` to scan these paths under another home directory and `--gap-minutes N` to change the idle threshold. Bun downloads the pinned Zod dependency on first run. Later runs use its local cache.\n\nActive time is the sum of the gaps between messages that are shorter than 15 minutes. Longer gaps count as time away. Cursor timestamps user messages to the minute. The scanner uses the last write time as the final edge when it follows those messages. It does not use filesystem creation times.\n\n## 2. Attribute time to tickets\n\n- A conversation lists every ticket key it mentions, including keys it only read about. Open the transcript near each key's first mention and keep only the tickets the user actually worked on in that conversation (planned, implemented, opened or fixed a PR).\n- When one conversation covers several tickets, split its active time by the stretch spent on each ticket if the transcript makes that clear. If the split is unclear, keep the time unattributed and explain why. Do not turn a guess into billable hours.\n- Check for overlapping parent and subagent conversations. Count overlapping intervals once; a separate file or worktree does not establish separate human work time.\n- If a ticket has no conversation, say so. Don't invent time.\n\n## 3. Look up PR state and waiting time\n\nFor each ticket with a PR, get the open and merge times:\n\n```bash\ngh pr view \u003Cnumber> --repo \u003Cowner\u002Frepo> --json createdAt,mergedAt,state\n```\n\nIf GitHub access is unavailable, report the conversation estimates and say that PR state was not checked.\n\nPR waiting time runs from open to merge. It is elapsed time, not work performed. Show it separately when useful. Do not add it to active work time or log it to Jira. Keep conversation activity after PR creation, since review fixes are work too.\n\n## 4. Show the report\n\nShow a table with the ticket, PR state, estimated active work time, and optional PR waiting time. Round displayed work estimates to minutes. Do not imply second-level accuracy from Cursor's minute-level timestamps.\n\nInclude unmatched conversations with their first prompts and estimated activity. Deliver the useful report without waiting for the user to classify every row. State any assumptions about overlapping sessions or ticket attribution.\n\nStop here unless the user asked to log the hours.\n\n## 5. Log to Jira when asked\n\nUse allocations and hours the user already approved. If the report introduced unapproved estimates or uncertain allocations, show the proposed entries and ask for those details before writing. Do not request the same approval twice. Jira access is required; if it is unavailable, return the report and identify what remains unlogged.\n\n- Log only the approved active work estimate, rounded to the nearest whole minute. Set `started` to the first activity.\n- Include a concise source and rounding note in the worklog description. Keep local transcript contents private. Do not add a separate ticket comment unless asked.\n- Move a ticket to Done only if its PR is merged and the user asked for that transition.\n- Check existing worklogs before writing. Skip entries that already match; update only entries covered by the request. After a failed write, read the remote state before retrying to avoid duplicates.\n- Verify the saved entries and report what was logged, skipped, or blocked. A successful tool call alone is not proof of the saved hours.\n","# Time report\n\nEstimate active work time per ticket from conversation history. These estimates describe gaps between recorded messages, not continuous observation of the user. The default range is yesterday.\n\n## 1. Scan the conversations\n\nFirst locate the user's transcript files. Check the agent's configuration, environment, and any paths the user supplied. Verify that the directories contain session JSONL files; do not assume the defaults exist or contain the history the user wants. If locations remain unknown, report which paths you checked and ask only for the missing location. Complete the report for sources you can read.\n\nRun [the scanner](scripts\u002Fscan-sessions.ts) with Bun 1.4 or newer:\n\n```bash\nbun \u003Cskill-dir>\u002Fscripts\u002Fscan-sessions.ts --since YYYY-MM-DD --until YYYY-MM-DD\n```\n\nBoth dates are local midnights and `--until` is exclusive. With no flags it scans yesterday. Use the requested range, or yesterday even on weekends. State the dates in the report. Ask about the working calendar only when the requested range depends on it.\n\nLikely locations, also used as the scanner defaults:\n\n- Claude Code: `~\u002F.claude\u002Fprojects\u002F*\u002F*.jsonl`\n- Cursor: `~\u002F.cursor\u002Fprojects\u002F*\u002Fagent-transcripts\u002F**\u002F*.jsonl`\n- Codex: `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl` and `~\u002F.codex\u002Farchived_sessions\u002F**\u002F*.jsonl`\n- Pi: `~\u002F.pi\u002Fagent\u002Fsessions\u002F**\u002F*.jsonl`\n\nFor files stored elsewhere, pass the verified directory with `--transcripts SOURCE=DIR`. This replaces the defaults for that source and searches the directory recursively. Repeat the option to include multiple directories, including any separate archive:\n\n```bash\nbun \u003Cskill-dir>\u002Fscripts\u002Fscan-sessions.ts --since YYYY-MM-DD --until YYYY-MM-DD \\\n  --transcripts \"codex=\u002Fpath\u002Fto\u002Fsessions\" --transcripts \"pi=\u002Fanother\u002Fpath\u002Fsessions\"\n```\n\nAn empty result does not prove there was no activity. Confirm the locations and requested dates before drawing that conclusion.\n\nCodex and Pi use the working directory in the session header as the project. It prints UTC timestamps in one JSON line per conversation with `source`, `project`, `file`, `start`, `end`, `active_seconds`, `first_prompt`, `tickets` with each key and its first mention time, and `pull_requests`.\n\nConversations with less than one minute of estimated activity are omitted. Use `--home PATH` to scan these paths under another home directory and `--gap-minutes N` to change the idle threshold. Bun downloads the pinned Zod dependency on first run. Later runs use its local cache.\n\nActive time is the sum of the gaps between messages that are shorter than 15 minutes. Longer gaps count as time away. Cursor timestamps user messages to the minute. The scanner uses the last write time as the final edge when it follows those messages. It does not use filesystem creation times.\n\n## 2. Attribute time to tickets\n\n- A conversation lists every ticket key it mentions, including keys it only read about. Open the transcript near each key's first mention and keep only the tickets the user actually worked on in that conversation (planned, implemented, opened or fixed a PR).\n- When one conversation covers several tickets, split its active time by the stretch spent on each ticket if the transcript makes that clear. If the split is unclear, keep the time unattributed and explain why. Do not turn a guess into billable hours.\n- Check for overlapping parent and subagent conversations. Count overlapping intervals once; a separate file or worktree does not establish separate human work time.\n- If a ticket has no conversation, say so. Don't invent time.\n\n## 3. Look up PR state and waiting time\n\nFor each ticket with a PR, get the open and merge times:\n\n```bash\ngh pr view \u003Cnumber> --repo \u003Cowner\u002Frepo> --json createdAt,mergedAt,state\n```\n\nIf GitHub access is unavailable, report the conversation estimates and say that PR state was not checked.\n\nPR waiting time runs from open to merge. It is elapsed time, not work performed. Show it separately when useful. Do not add it to active work time or log it to Jira. Keep conversation activity after PR creation, since review fixes are work too.\n\n## 4. Show the report\n\nShow a table with the ticket, PR state, estimated active work time, and optional PR waiting time. Round displayed work estimates to minutes. Do not imply second-level accuracy from Cursor's minute-level timestamps.\n\nInclude unmatched conversations with their first prompts and estimated activity. Deliver the useful report without waiting for the user to classify every row. State any assumptions about overlapping sessions or ticket attribution.\n\nStop here unless the user asked to log the hours.\n\n## 5. Log to Jira when asked\n\nUse allocations and hours the user already approved. If the report introduced unapproved estimates or uncertain allocations, show the proposed entries and ask for those details before writing. Do not request the same approval twice. Jira access is required; if it is unavailable, return the report and identify what remains unlogged.\n\n- Log only the approved active work estimate, rounded to the nearest whole minute. Set `started` to the first activity.\n- Include a concise source and rounding note in the worklog description. Keep local transcript contents private. Do not add a separate ticket comment unless asked.\n- Move a ticket to Done only if its PR is merged and the user asked for that transition.\n- Check existing worklogs before writing. Skip entries that already match; update only entries covered by the request. After a failed write, read the remote state before retrying to avoid duplicates.\n- Verify the saved entries and report what was logged, skipped, or blocked. A successful tool call alone is not proof of the saved hours.\n",{"name":5,"license":15,"description":7,"compatibility":24},"Requires Bun 1.4 or newer and local Claude Code, Cursor, Codex, or Pi transcripts. GitHub CLI and Jira access are optional.","main","218995079ea3482842dad69f91978965fc41075d","skills\u002Ftime-report","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack","https:\u002F\u002Fgithub.com\u002F0xr3ngar","bnn.dev","2026-10-27 20:05:16",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add 0xr3ngar\u002Fbstack --skill time-report",{"tool":38,"command":39},"bunx","bunx skills add 0xr3ngar\u002Fbstack --skill time-report",{"tool":41,"command":42},"pnpm","pnpm dlx skills add 0xr3ngar\u002Fbstack --skill time-report","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Ftime-report\u002FSKILL.md",true,[46,52,58,62],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"package.json","REFERENCE","参考文档",86,"https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Ftime-report\u002Fpackage.json",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"scripts\u002Fscan-sessions.ts","SCRIPT","脚本",5136,"https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Ftime-report\u002Fscripts\u002Fscan-sessions.ts",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Fschemas.ts",1675,"https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Ftime-report\u002Fscripts\u002Fschemas.ts",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Ftranscripts.ts",7949,"https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Ftime-report\u002Fscripts\u002Ftranscripts.ts",[67,73,80,87,94,101],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7DMCVSG2J2EBVK5M2SQDZEA","templates","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Ftemplates\u002Fskill.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DMCQEEPK2P7RQVN6Z6KAW3","yeet","Open a draft PR and work through the user's review comments. Once ready for review, explain feedback and wait for direction. Trigger on \"yeet\".","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DMCKKJ1R6RFHFEFMDWCVFA","unslop","Rewrite text so it reads like a person wrote it, not a template.","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DMC6Z1CYTPM23R41ES66FQ","pr-debate","Review a PR with three subagents that argue over 2-3 rounds. A reviewer proposes comments, a skeptic argues they are noise, and a judge rules on each one. Use for \u002Fpr-debate, 'debate this PR', or an adversarial PR review.","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Fpr-debate\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7DMC4BM5MF95EKAHCW590AC","no-comments","Remove redundant comments within the requested scope while preserving useful constraints and working code.","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Fno-comments\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7DMC1T8TTPJTB8B3ZFZBGBH","coding-best-practices","Implement or review code through a verified result. Keep changes small and TypeScript readable.","https:\u002F\u002Fgithub.com\u002F0xr3ngar\u002Fbstack\u002Fblob\u002Fmain\u002Fskills\u002Fcoding-best-practices\u002FSKILL.md",[],[]]