From 3436507a2158959f872a82a540009506473440dd Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 27 Mar 2026 10:57:47 +0000 Subject: [PATCH] storkit: create 410_story_loc_bot_command_top_files_by_line_count --- ...loc_bot_command_top_files_by_line_count.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .storkit/work/1_backlog/410_story_loc_bot_command_top_files_by_line_count.md diff --git a/.storkit/work/1_backlog/410_story_loc_bot_command_top_files_by_line_count.md b/.storkit/work/1_backlog/410_story_loc_bot_command_top_files_by_line_count.md new file mode 100644 index 00000000..8a01c3a0 --- /dev/null +++ b/.storkit/work/1_backlog/410_story_loc_bot_command_top_files_by_line_count.md @@ -0,0 +1,24 @@ +--- +name: "loc bot command — top files by line count" +retry_count: 2 +blocked: true +--- + +# Story 410: loc bot command — top files by line count + +## User Story + +As a developer, I want to send `loc` to the bot and see the top files by line count, so I can spot files that are getting too large before they become a problem for agents. + +## Acceptance Criteria + +- [ ] loc command is registered in chat/commands/mod.rs and appears in help output +- [ ] `loc` returns the top 10 source files by line count (excluding generated files, node_modules, target/, .storkit/worktrees/) +- [ ] `loc 5` returns the top 5 files +- [ ] `loc 20` returns the top 20 files +- [ ] Output includes file path, line count, and rank +- [ ] Command works from all transports (Matrix, WhatsApp, Slack) + +## Out of Scope + +- TBD