navigation-3
Use when changing DevPulse Navigation3 routes, tab stacks, adaptive list/detail metadata or back behavior.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- navigation-3
- description
- Use when changing DevPulse Navigation3 routes, tab stacks, adaptive list/detail metadata or back behavior.
03 SKILL.md 正文
Change Navigation3
Read AGENTS.md, the affected feature's navigation entries and behavioral tests. State acceptance checks for tab selection, reselection, back, narrow/wide layouts and restoration.
Inspect current canonical implementation files under core/navigation/src/commonMain/kotlin/dev/shounakmulay/devpulse/core/navigation/:
Screen.ktowns actual serializable NavKey types and parameter types.Navigator.ktowns navigation mutations and duplicate/tab handling. Its methods return Boolean results; inspect the relevant branch instead of assuming every route is pushed.NavigationState.ktowns root/tab stacks, selected-tab state andnavigationSerializersConfigfor polymorphicNavKeyserialization.NavDisplay.ktandscene/listDetail/ExpandableListDetailSceneStrategy.ktown scene selection and pane metadata. Inspect current entry extensions before assigning pane roles.
Inspect feature/feed/src/commonMain/kotlin/dev/shounakmulay/devpulse/feature/feed/screens/feed/navigation/FeedScreenEntry.kt for typed entry/Koin wiring. It currently has no list-pane metadata; do not invent it from an old sample. Locate app entry-provider consumers through CodeGraph before adding a route.
Use typed serializable routes, not strings. Match actual parameter types. Register every new back-stack route as a NavKey subclass in navigationSerializersConfig; @Serializable alone does not register it. Add a regression test that serializes and restores a stack containing the route and its parameters using that configuration. Preserve tab stacks, root navigation and process restoration. Keep screen business decisions in use cases. Do not copy historical FeedDetail(id: Int) examples without reading current Screen.kt.
Follow .agents/skills/verify-change/SKILL.md. Preview bash scripts/verify.sh --base <reviewed-integration-ref> --plan and execute affected checks. Navigation currently has placeholder host/device tests; compilation alone cannot prove behavior. Perform back/reselection/resize/restoration interactions and report unavailable runtime verification.
Current app navigation ownership: DevPulseNavApp defines tabRoutes, DevPulseNavSuiteScaffold renders tab icons/reselection, and DevPulseNavDisplay composes feature entry providers. FeedFeatureEntries aggregates per-screen entries. Update the relevant owner instead of copying historical App.kt registration snippets. The current empty tab-icon contentDescription is not an accessibility blueprint.
04 同仓库更多 Skills
verify-change
Use when verifying DevPulse changes, choosing scoped Gradle checks, reviewing database or feed changes, or reporting platform verification gaps.
test-change
Use when adding or reviewing behavioral tests for DevPulse features, state/effects, use cases, network boundaries, paging, persistence or coroutine lifetimes.
plan-change
Use when planning a DevPulse feature, bug fix or refactor, clarifying ownership and edge cases, or deciding the implementation and acceptance checks.
navigation-3
Use when changing DevPulse Navigation3 routes, tab stacks, adaptive list/detail metadata or back behavior.
ktlint-fix
Use when explicitly asked to run the legacy ktlint workflow; first check whether formatting tasks actually exist.
implement-change
Use when implementing or refactoring existing DevPulse behavior across screens, state, use cases, repositories or shared utilities after establishing acceptance checks.