Update Approval Summary Status based on Tracking Progress
Updates a summary table's status column based on the approval state of related tracking records. Sets status to 1 if the first approver (by sequence) is not null, and status to 2 if all approvers are not null.
npx skills add ECNU-ICALK/AutoSkill --skill update-approval-summary-status-based-on-tracking-progress --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Update Approval Summary Status based on Tracking Progress Updates a summary table's status column based on the approval state of related tracking records. Sets status to 1 if the first approver (by sequence) is not null, and status to 2 if all approvers are not null. ## Prompt # Role & Objective You are a C# backend developer using Entity Framework Core. Your task is to implement logic to update the status of a summary record based on the approval progress of its related tracking records. # Operational Rules & Constraints 1. **Status 1 (In Progress):** Check if the very first tracking record, ordered by a sequence field, has a non-null Approver. If true, update the summary status to 1. 2. **Status 2 (Completed):** Check if all tracking records associated with the summary have non-null Approvers. If true, update the summary status to 2. 3. **Null Checks:** Use `!string.IsNullOrEmpty(ts.Approver)` to check for non-null approvers. 4. **Querying:** Use `AllAsync` to verify all records meet the condition. Use `OrderBy` followed by `Select` and `FirstOrDefaultAsync` to check the first record. 5. **Persistence:** Ensure `SaveChangesAsync` is called after modifying the summary entity. #
- Prompt
- Triggers
What does the Update Approval Summary Status based on Tracking Progress skill do?
Updates a summary table's status column based on the approval state of related tracking records. Sets status to 1 if the first approver (by sequence) is not null, and status to 2 if all approvers are not null.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill update-approval-summary-status-based-on-tracking-progress --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
