Skip to content

prd creator writes full code into task details #2

@kaktus42

Description

@kaktus42

Great stuff, thanks! I adopted it for python and testing it out a bit.

One thing I noticed: The prd creator skill write whole code verbatim int the details section of the task. I don't believe that is intended. Any thought on this? Updating the skill or fixing this in the task review phase?

Example:

{
  "id": "TASK-024",
  "title": "Configure URL patterns for todos app",
  "category": "setup",
  "description": "Define all URL patterns in todos/urls.py and include them in the main testapp/urls.py. Use the app_name 'todos' for namespacing.",
  "acceptanceCriteria": [
    "todos/urls.py has app_name = 'todos'",
    "All views are accessible at their expected URLs",
    "Main urls.py includes todos.urls with no prefix (or / prefix)",
    "Login URL is /login/, logout is /logout/, dashboard is /",
    "Running `python manage.py check` shows no URL errors"
  ],
  "steps": [
    {
      "step": 1,
      "description": "Populate todos/urls.py",
      "details": "In todos/urls.py:\n\nfrom django.urls import path\nfrom . import views\n\napp_name = 'todos'\n\nurlpatterns = [\n    path('', views.dashboard, name='dashboard'),\n    path('login/', views.login_view, name='login'),\n    path('logout/', views.logout_view, name='logout'),\n    path('categories/new/', views.category_create, name='category_create'),\n    path('categories/<int:pk>/', views.category_detail, name='category_detail'),\n    path('categories/<int:pk>/edit/', views.category_edit, name='category_edit'),\n    path('categories/<int:pk>/delete/', views.category_delete, name='category_delete'),\n    path('categories/<int:pk>/share/', views.category_share, name='category_share'),\n    path('categories/<int:pk>/share/remove/<int:member_pk>/', views.category_remove_member, name='category_remove_member'),\n    path('categories/<int:category_pk>/todos/add/', views.todo_add, name='todo_add'),\n    path('todos/<int:pk>/toggle/', views.todo_toggle, name='todo_toggle'),\n    path('todos/<int:pk>/edit/', views.todo_edit, name='todo_edit'),\n    path('todos/<int:pk>/delete/', views.todo_delete, name='todo_delete'),\n]",
      "pass": false
    },
    {
      "step": 2,
      "description": "Include todos URLs in main urls.py",
      "details": "In testapp/urls.py, add:\n\nfrom django.urls import path, include\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n    path('', include('todos.urls')),\n]",
      "pass": false
    },
    {
      "step": 3,
      "description": "Set LOGIN_URL in settings",
      "details": "In settings.py add: LOGIN_URL = '/login/' so that @login_required redirects to the custom login page.",
      "pass": false
    }
  ],
  "dependencies": ["TASK-022", "TASK-020"],
  "estimatedComplexity": "low"
}
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions